<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Livox SDK API: sdk_core/include/third_party/spdlog/spdlog/fmt/bundled/format-inl.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="1.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Livox SDK API
   &#160;<span id="projectnumber">V2.0.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('format-inl_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">format-inl.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="format-inl_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">// Formatting library for C++</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// Copyright (c) 2012 - 2016, Victor Zverovich</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// All rights reserved.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// For the license information refer to format.h.</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160; </div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#ifndef FMT_FORMAT_INL_H_</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#define FMT_FORMAT_INL_H_</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160; </div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="format_8h.html">format.h</a>&quot;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160; </div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;string.h&gt;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160; </div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &lt;cctype&gt;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &lt;cerrno&gt;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &lt;climits&gt;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &lt;cmath&gt;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &lt;cstdarg&gt;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &lt;cstddef&gt;</span>  <span class="comment">// for std::ptrdiff_t</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;cstring&gt;</span>  <span class="comment">// for std::memmove</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#if !defined(FMT_STATIC_THOUSANDS_SEPARATOR)</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor"># include &lt;locale&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#if FMT_USE_WINDOWS_H</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor"># if !defined(FMT_HEADER_ONLY) &amp;&amp; !defined(WIN32_LEAN_AND_MEAN)</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#  define WIN32_LEAN_AND_MEAN</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor"># endif</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor"># if defined(NOMINMAX) || defined(FMT_WIN_MINMAX)</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#  include &lt;windows.h&gt;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor"># else</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#  define NOMINMAX</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#  include &lt;windows.h&gt;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#  undef NOMINMAX</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor"># endif</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#if FMT_EXCEPTIONS</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="format-inl_8h.html#a4aa79926398ee27fe7d6db8b0dd54edf">   40</a></span>&#160;<span class="preprocessor"># define FMT_TRY try</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="format-inl_8h.html#ab8efe0100a6d7cc74729f5bf7537799c">   41</a></span>&#160;<span class="preprocessor"># define FMT_CATCH(x) catch (x)</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor"># define FMT_TRY if (true)</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor"># define FMT_CATCH(x) if (false)</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160; </div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">#ifdef _MSC_VER</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor"># pragma warning(push)</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor"># pragma warning(disable: 4127)  // conditional expression is constant</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor"># pragma warning(disable: 4702)  // unreachable code</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="comment">// Disable deprecation warning for strerror. The latter is not called but</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="comment">// MSVC fails to detect it.</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor"># pragma warning(disable: 4996)</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="comment">// Dummy implementations of strerror_r and strerror_s called if corresponding</span></div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="comment">// system functions are not available.</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="format-inl_8h.html#a8307cb500850a7c5033cf64702e15990">   58</a></span>&#160;<span class="keyword">inline</span> fmt::internal::null&lt;&gt; <a class="code" href="format-inl_8h.html#a8307cb500850a7c5033cf64702e15990">strerror_r</a>(<span class="keywordtype">int</span>, <span class="keywordtype">char</span> *, ...) {</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;  <span class="keywordflow">return</span> fmt::internal::null&lt;&gt;();</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;}</div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="format-inl_8h.html#a3bbfb7ce6b764966d8cf5d018589375e">   61</a></span>&#160;<span class="keyword">inline</span> fmt::internal::null&lt;&gt; <a class="code" href="format-inl_8h.html#a3bbfb7ce6b764966d8cf5d018589375e">strerror_s</a>(<span class="keywordtype">char</span> *, std::size_t, ...) {</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;  <span class="keywordflow">return</span> fmt::internal::null&lt;&gt;();</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;}</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<a class="code" href="core_8h.html#a887c191adf8cfaf06ed40b5c4d487343">FMT_BEGIN_NAMESPACE</a></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="keyword">namespace </span>{</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160; </div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="preprocessor">#ifndef _MSC_VER</span></div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="format-inl_8h.html#a9a9bb3caa94066b3adc175bb24cb1783">   70</a></span>&#160;<span class="preprocessor"># define FMT_SNPRINTF snprintf</span></div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="preprocessor">#else  // _MSC_VER</span></div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">int</span> fmt_snprintf(<span class="keywordtype">char</span> *<a class="code" href="namespacefmt_1_1v5_1_1internal.html#ae63557fe9ccf973c29dc6dd122fa4ae0">buffer</a>, <span class="keywordtype">size_t</span> size, <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="namespacefmt_1_1v5.html#a8accad256e8cb70d1398a568742a60f0">format</a>, ...) {</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;  va_list args;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;  va_start(args, <a class="code" href="namespacefmt_1_1v5.html#a8accad256e8cb70d1398a568742a60f0">format</a>);</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;  <span class="keywordtype">int</span> result = vsnprintf_s(<a class="code" href="namespacefmt_1_1v5_1_1internal.html#ae63557fe9ccf973c29dc6dd122fa4ae0">buffer</a>, size, _TRUNCATE, <a class="code" href="namespacefmt_1_1v5.html#a8accad256e8cb70d1398a568742a60f0">format</a>, args);</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;  va_end(args);</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;  <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;}</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="preprocessor"># define FMT_SNPRINTF fmt_snprintf</span></div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="preprocessor">#endif  // _MSC_VER</span></div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="preprocessor">#if defined(_WIN32) &amp;&amp; defined(__MINGW32__) &amp;&amp; !defined(__NO_ISOCEXT)</span></div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="preprocessor"># define FMT_SWPRINTF snwprintf</span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="format-inl_8h.html#a7b59f9b149f610d3edd05ed99536253c">   85</a></span>&#160;<span class="preprocessor"># define FMT_SWPRINTF swprintf</span></div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="preprocessor">#endif // defined(_WIN32) &amp;&amp; defined(__MINGW32__) &amp;&amp; !defined(__NO_ISOCEXT)</span></div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="keyword">typedef</span> void (*FormatFunc)(<a class="code" href="namespacefmt_1_1v5_1_1internal.html#ae63557fe9ccf973c29dc6dd122fa4ae0">internal::buffer</a> &amp;, int, <a class="code" href="namespacefmt_1_1v5.html#a3301ccbf6a0ab1b233242041a835a54a">string_view</a>);</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160; </div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="comment">// Portable thread-safe version of strerror.</span></div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="comment">// Sets buffer to point to a string describing the error code.</span></div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="comment">// This can be either a pointer to a string stored in buffer,</span></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="comment">// or a pointer to some static immutable string.</span></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="comment">// Returns one of the following values:</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="comment">//   0      - success</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="comment">//   ERANGE - buffer is not large enough to store the error message</span></div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="comment">//   other  - failure</span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="comment">// Buffer should be at least of size 1.</span></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="keywordtype">int</span> safe_strerror(</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <span class="keywordtype">int</span> error_code, <span class="keywordtype">char</span> *&amp;<a class="code" href="namespacefmt_1_1v5_1_1internal.html#ae63557fe9ccf973c29dc6dd122fa4ae0">buffer</a>, std::size_t buffer_size) <a class="code" href="core_8h.html#aef128913e8400683b1cbd1a3a2e11df3">FMT_NOEXCEPT</a> {</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;  <a class="code" href="core_8h.html#a03e7ee720f43adc7d83c652a6a5dd5f8">FMT_ASSERT</a>(<a class="code" href="namespacefmt_1_1v5_1_1internal.html#ae63557fe9ccf973c29dc6dd122fa4ae0">buffer</a> != <a class="code" href="core_8h.html#af7f827e50dd7667484c279ac1d38f30b">FMT_NULL</a> &amp;&amp; buffer_size != 0, <span class="stringliteral">&quot;invalid buffer&quot;</span>);</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;  <span class="keyword">class </span>dispatcher {</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;   <span class="keyword">private</span>:</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <span class="keywordtype">int</span> error_code_;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <span class="keywordtype">char</span> *&amp;buffer_;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    std::size_t buffer_size_;</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160; </div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    <span class="comment">// A noop assignment operator to avoid bogus warnings.</span></div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> dispatcher &amp;) {}</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    <span class="comment">// Handle the result of XSI-compliant version of strerror_r.</span></div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <span class="keywordtype">int</span> handle(<span class="keywordtype">int</span> result) {</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;      <span class="comment">// glibc versions before 2.13 return result in errno.</span></div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;      <span class="keywordflow">return</span> result == -1 ? errno : result;</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    }</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    <span class="comment">// Handle the result of GNU-specific version of strerror_r.</span></div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keywordtype">int</span> handle(<span class="keywordtype">char</span> *message) {</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;      <span class="comment">// If the buffer is full then the message is probably truncated.</span></div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;      <span class="keywordflow">if</span> (message == buffer_ &amp;&amp; strlen(buffer_) == buffer_size_ - 1)</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;        <span class="keywordflow">return</span> ERANGE;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;      buffer_ = message;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;      <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    }</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <span class="comment">// Handle the case when strerror_r is not available.</span></div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <span class="keywordtype">int</span> handle(internal::null&lt;&gt;) {</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;      <span class="keywordflow">return</span> fallback(<a class="code" href="format-inl_8h.html#a3bbfb7ce6b764966d8cf5d018589375e">strerror_s</a>(buffer_, buffer_size_, error_code_));</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    }</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160; </div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    <span class="comment">// Fallback to strerror_s when strerror_r is not available.</span></div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <span class="keywordtype">int</span> fallback(<span class="keywordtype">int</span> result) {</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;      <span class="comment">// If the buffer is full then the message is probably truncated.</span></div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;      <span class="keywordflow">return</span> result == 0 &amp;&amp; strlen(buffer_) == buffer_size_ - 1 ?</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;            ERANGE : result;</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    }</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160; </div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<span class="preprocessor">#if !FMT_MSC_VER</span></div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="comment">// Fallback to strerror if strerror_r and strerror_s are not available.</span></div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    <span class="keywordtype">int</span> fallback(internal::null&lt;&gt;) {</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;      errno = 0;</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;      buffer_ = strerror(error_code_);</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;      <span class="keywordflow">return</span> errno;</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    }</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160; </div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;   <span class="keyword">public</span>:</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    dispatcher(<span class="keywordtype">int</span> err_code, <span class="keywordtype">char</span> *&amp;buf, std::size_t buf_size)</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;      : error_code_(err_code), buffer_(buf), buffer_size_(buf_size) {}</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160; </div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    <span class="keywordtype">int</span> run() {</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;      <span class="keywordflow">return</span> handle(<a class="code" href="format-inl_8h.html#a8307cb500850a7c5033cf64702e15990">strerror_r</a>(error_code_, buffer_, buffer_size_));</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    }</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;  };</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;  <span class="keywordflow">return</span> dispatcher(error_code, <a class="code" href="namespacefmt_1_1v5_1_1internal.html#ae63557fe9ccf973c29dc6dd122fa4ae0">buffer</a>, buffer_size).run();</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;}</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160; </div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;<span class="keywordtype">void</span> format_error_code(<a class="code" href="namespacefmt_1_1v5_1_1internal.html#ae63557fe9ccf973c29dc6dd122fa4ae0">internal::buffer</a> &amp;out, <span class="keywordtype">int</span> error_code,</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;                       <a class="code" href="namespacefmt_1_1v5.html#a3301ccbf6a0ab1b233242041a835a54a">string_view</a> message) <a class="code" href="core_8h.html#aef128913e8400683b1cbd1a3a2e11df3">FMT_NOEXCEPT</a> {</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;  <span class="comment">// Report error code making sure that the output fits into</span></div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;  <span class="comment">// inline_buffer_size to avoid dynamic memory allocation and potential</span></div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;  <span class="comment">// bad_alloc.</span></div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;  out.resize(0);</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> SEP[] = <span class="stringliteral">&quot;: &quot;</span>;</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> ERROR_STR[] = <span class="stringliteral">&quot;error &quot;</span>;</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;  <span class="comment">// Subtract 2 to account for terminating null characters in SEP and ERROR_STR.</span></div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;  std::size_t error_code_size = <span class="keyword">sizeof</span>(SEP) + <span class="keyword">sizeof</span>(ERROR_STR) - 2;</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;  <span class="keyword">typedef</span> internal::int_traits&lt;int&gt;::main_type main_type;</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;  main_type abs_value = static_cast&lt;main_type&gt;(error_code);</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;  <span class="keywordflow">if</span> (<a class="code" href="namespacefmt_1_1v5_1_1internal.html#a58d822138c8882afb5559c4b1d7729cc">internal::is_negative</a>(error_code)) {</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    abs_value = 0 - abs_value;</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    ++error_code_size;</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;  }</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;  error_code_size += <a class="code" href="namespacefmt_1_1v5_1_1internal.html#abef3b695050c4132b4fc4d7f256b9580">internal::to_unsigned</a>(<a class="code" href="namespacespdlog_1_1details_1_1fmt__helper.html#a976eeb3c4a42ccfb05437aa9a0d4d9f7">internal::count_digits</a>(abs_value));</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;  <a class="code" href="namespacefmt_1_1v5.html#aa896aba6bd0796c1d93bd6f71556a9f5">writer</a> w(out);</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;  <span class="keywordflow">if</span> (message.size() &lt;= <a class="code" href="namespacefmt_1_1v5.html#ae7eb8fc665a67b192dc6437bc62ca354a0af8f7e3ddd1a426ef65b42502b4d3a0">inline_buffer_size</a> - error_code_size) {</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    w.write(message);</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    w.write(SEP);</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;  }</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;  w.write(ERROR_STR);</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;  w.write(error_code);</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;  assert(out.size() &lt;= <a class="code" href="namespacefmt_1_1v5.html#ae7eb8fc665a67b192dc6437bc62ca354a0af8f7e3ddd1a426ef65b42502b4d3a0">inline_buffer_size</a>);</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;}</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160; </div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;<span class="keywordtype">void</span> report_error(FormatFunc func, <span class="keywordtype">int</span> error_code,</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;                  <a class="code" href="namespacefmt_1_1v5.html#a3301ccbf6a0ab1b233242041a835a54a">string_view</a> message) <a class="code" href="core_8h.html#aef128913e8400683b1cbd1a3a2e11df3">FMT_NOEXCEPT</a> {</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;  <a class="code" href="namespacefmt_1_1v5.html#a87104ff0bbd588f55bbbadf592227d75">memory_buffer</a> full_message;</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;  func(full_message, error_code, message);</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;  <span class="comment">// Use Writer::data instead of Writer::c_str to avoid potential memory</span></div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;  <span class="comment">// allocation.</span></div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;  std::fwrite(full_message.data(), full_message.size(), 1, stderr);</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;  std::fputc(<span class="charliteral">&#39;\n&#39;</span>, stderr);</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;}</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;}  <span class="comment">// namespace</span></div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160; </div>
<div class="line"><a name="l00197"></a><span class="lineno"><a class="line" href="namespacefmt_1_1v5_1_1internal.html#aca60c11758ae1d5b422178e883252bba">  197</a></span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> <span class="keywordtype">size_t</span> <a class="code" href="namespacefmt_1_1v5_1_1internal.html#a6c2c4c3c6a5dc4e3559ed105c44c4d9e">internal::count_code_points</a>(<a class="code" href="classfmt_1_1v5_1_1basic__string__view.html">basic_string_view&lt;char8_t&gt;</a> s) {</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;  <span class="keyword">const</span> <a class="code" href="namespacefmt_1_1v5.html#aa9df55c2a1be07baac1ee84d206683f5">char8_t</a> *<a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html">data</a> = s.<a class="code" href="classfmt_1_1v5_1_1basic__string__view.html#a517e9e8fc58c52c7816fa647d5e69f9f">data</a>();</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;  <span class="keywordtype">size_t</span> num_code_points = 0;</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0, size = s.<a class="code" href="classfmt_1_1v5_1_1basic__string__view.html#abd82d74b110d5d4f52e0282e4d11fc99">size</a>(); i != size; ++i) {</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    <span class="keywordflow">if</span> ((<a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html">data</a>[i] &amp; 0xc0) != 0x80)</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;      ++num_code_points;</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;  }</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;  <span class="keywordflow">return</span> num_code_points;</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;}</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160; </div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;<span class="preprocessor">#if !defined(FMT_STATIC_THOUSANDS_SEPARATOR)</span></div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;<span class="keyword">namespace </span>internal {</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160; </div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Locale&gt;</div>
<div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="classfmt_1_1v5_1_1internal_1_1locale__ref.html#ae3997bdc7859ad4d18cbc86a702b61d7">  211</a></span>&#160;locale_ref::locale_ref(<span class="keyword">const</span> Locale &amp;loc) : locale_(&amp;loc) {</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;  static_assert(std::is_same&lt;Locale, std::locale&gt;::value, <span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;}</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160; </div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Locale&gt;</div>
<div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="classfmt_1_1v5_1_1internal_1_1locale__ref.html#a1c00987ce7b6a1a9160277505b2dc38d">  216</a></span>&#160;Locale <a class="code" href="classfmt_1_1v5_1_1internal_1_1locale__ref.html#a1c00987ce7b6a1a9160277505b2dc38d">locale_ref::get</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;  static_assert(std::is_same&lt;Locale, std::locale&gt;::value, <span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;  <span class="keywordflow">return</span> locale_ ? *static_cast&lt;const std::locale*&gt;(locale_) : std::locale();</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;}</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160; </div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Char&gt;</div>
<div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="namespacefmt_1_1v5_1_1internal.html#a80875403133fef6385e50480459b1136">  222</a></span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> Char <a class="code" href="namespacefmt_1_1v5_1_1internal.html#a80875403133fef6385e50480459b1136">thousands_sep_impl</a>(<a class="code" href="classfmt_1_1v5_1_1internal_1_1locale__ref.html">locale_ref</a> loc) {</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;  <span class="keywordflow">return</span> std::use_facet&lt;std::numpunct&lt;Char&gt; &gt;(</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    loc.<a class="code" href="classfmt_1_1v5_1_1internal_1_1locale__ref.html#a1c00987ce7b6a1a9160277505b2dc38d">get</a>&lt;std::locale&gt;()).thousands_sep();</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;}</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;}</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Char&gt;</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> Char <a class="code" href="namespacefmt_1_1v5_1_1internal.html#a80875403133fef6385e50480459b1136">internal::thousands_sep_impl</a>(locale_ref) {</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;  <span class="keywordflow">return</span> FMT_STATIC_THOUSANDS_SEPARATOR;</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;}</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160; </div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> <span class="keywordtype">void</span> system_error::init(</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;    <span class="keywordtype">int</span> err_code, <a class="code" href="namespacefmt_1_1v5.html#a3301ccbf6a0ab1b233242041a835a54a">string_view</a> format_str, format_args args) {</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;  <a class="code" href="classfmt_1_1v5_1_1system__error.html#ac761354e3eb707044395fd140020e796">error_code_</a> = err_code;</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;  <a class="code" href="namespacefmt_1_1v5.html#a87104ff0bbd588f55bbbadf592227d75">memory_buffer</a> <a class="code" href="namespacefmt_1_1v5_1_1internal.html#ae63557fe9ccf973c29dc6dd122fa4ae0">buffer</a>;</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;  <a class="code" href="namespacefmt_1_1v5.html#a7f211f565c9879fafad806b788dde60d">format_system_error</a>(<a class="code" href="namespacefmt_1_1v5_1_1internal.html#ae63557fe9ccf973c29dc6dd122fa4ae0">buffer</a>, err_code, <a class="code" href="namespacefmt_1_1v5.html#afbb941ac362fc08798ab3f9b1303f88f">vformat</a>(format_str, args));</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;  std::runtime_error &amp;base = *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;  base = std::runtime_error(<a class="code" href="namespacefmt_1_1v5.html#af7906102d07e0d93b609aef6c05fc27a">to_string</a>(<a class="code" href="namespacefmt_1_1v5_1_1internal.html#ae63557fe9ccf973c29dc6dd122fa4ae0">buffer</a>));</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;}</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160; </div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;<span class="keyword">namespace </span>internal {</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1char__traits_3_01char_01_4.html#a649e42c11daf3f13c8cba34bb20bb649">  245</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1char__traits.html">char_traits&lt;char&gt;::format_float</a>(</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    <span class="keywordtype">char</span> *buf, std::size_t size, <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="namespacefmt_1_1v5.html#a8accad256e8cb70d1398a568742a60f0">format</a>, <span class="keywordtype">int</span> precision, T <a class="code" href="classfmt_1_1v5_1_1internal_1_1value.html">value</a>) {</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;  <span class="keywordflow">return</span> precision &lt; 0 ?</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;      <a class="code" href="format-inl_8h.html#a9a9bb3caa94066b3adc175bb24cb1783">FMT_SNPRINTF</a>(buf, size, <a class="code" href="namespacefmt_1_1v5.html#a8accad256e8cb70d1398a568742a60f0">format</a>, <a class="code" href="classfmt_1_1v5_1_1internal_1_1value.html">value</a>) :</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;      <a class="code" href="format-inl_8h.html#a9a9bb3caa94066b3adc175bb24cb1783">FMT_SNPRINTF</a>(buf, size, <a class="code" href="namespacefmt_1_1v5.html#a8accad256e8cb70d1398a568742a60f0">format</a>, precision, <a class="code" href="classfmt_1_1v5_1_1internal_1_1value.html">value</a>);</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;}</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160; </div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00253"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1char__traits_3_01wchar__t_01_4.html#addb0ff96690e7424d61c79b0ef47ffc4">  253</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1char__traits.html">char_traits&lt;wchar_t&gt;::format_float</a>(</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;    <span class="keywordtype">wchar_t</span> *buf, std::size_t size, <span class="keyword">const</span> <span class="keywordtype">wchar_t</span> *<a class="code" href="namespacefmt_1_1v5.html#a8accad256e8cb70d1398a568742a60f0">format</a>, <span class="keywordtype">int</span> precision,</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    T <a class="code" href="classfmt_1_1v5_1_1internal_1_1value.html">value</a>) {</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;  <span class="keywordflow">return</span> precision &lt; 0 ?</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;      <a class="code" href="format-inl_8h.html#a7b59f9b149f610d3edd05ed99536253c">FMT_SWPRINTF</a>(buf, size, <a class="code" href="namespacefmt_1_1v5.html#a8accad256e8cb70d1398a568742a60f0">format</a>, <a class="code" href="classfmt_1_1v5_1_1internal_1_1value.html">value</a>) :</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;      <a class="code" href="format-inl_8h.html#a7b59f9b149f610d3edd05ed99536253c">FMT_SWPRINTF</a>(buf, size, <a class="code" href="namespacefmt_1_1v5.html#a8accad256e8cb70d1398a568742a60f0">format</a>, precision, <a class="code" href="classfmt_1_1v5_1_1internal_1_1value.html">value</a>);</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;}</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160; </div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html">basic_data&lt;T&gt;::DIGITS</a>[] =</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;    <span class="stringliteral">&quot;0001020304050607080910111213141516171819&quot;</span></div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;    <span class="stringliteral">&quot;2021222324252627282930313233343536373839&quot;</span></div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;    <span class="stringliteral">&quot;4041424344454647484950515253545556575859&quot;</span></div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;    <span class="stringliteral">&quot;6061626364656667686970717273747576777879&quot;</span></div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;    <span class="stringliteral">&quot;8081828384858687888990919293949596979899&quot;</span>;</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160; </div>
<div class="line"><a name="l00269"></a><span class="lineno"><a class="line" href="format-inl_8h.html#aeff75c93a29bc942ca36b31a4b634fe9">  269</a></span>&#160;<span class="preprocessor">#define FMT_POWERS_OF_10(factor) \</span></div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;<span class="preprocessor">  factor * 10, \</span></div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;<span class="preprocessor">  factor * 100, \</span></div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;<span class="preprocessor">  factor * 1000, \</span></div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;<span class="preprocessor">  factor * 10000, \</span></div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;<span class="preprocessor">  factor * 100000, \</span></div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;<span class="preprocessor">  factor * 1000000, \</span></div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;<span class="preprocessor">  factor * 10000000, \</span></div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;<span class="preprocessor">  factor * 100000000, \</span></div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;<span class="preprocessor">  factor * 1000000000</span></div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160; </div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;<span class="keyword">const</span> uint32_t <a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html#a195c2b45ae9bb0a953156d3ae7eb35ca">basic_data&lt;T&gt;::POWERS_OF_10_32</a>[] = {</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;  1, <a class="code" href="format-inl_8h.html#aeff75c93a29bc942ca36b31a4b634fe9">FMT_POWERS_OF_10</a>(1)</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;};</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160; </div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;<span class="keyword">const</span> uint32_t <a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html#a7c75c3b052395aa783f67d1221946c27">basic_data&lt;T&gt;::ZERO_OR_POWERS_OF_10_32</a>[] = {</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;  0, <a class="code" href="format-inl_8h.html#aeff75c93a29bc942ca36b31a4b634fe9">FMT_POWERS_OF_10</a>(1)</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;};</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160; </div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;<span class="keyword">const</span> uint64_t <a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html#aff0c2d26ec88801043953054e3bcc971">basic_data&lt;T&gt;::ZERO_OR_POWERS_OF_10_64</a>[] = {</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;  0,</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;  <a class="code" href="format-inl_8h.html#aeff75c93a29bc942ca36b31a4b634fe9">FMT_POWERS_OF_10</a>(1),</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;  <a class="code" href="format-inl_8h.html#aeff75c93a29bc942ca36b31a4b634fe9">FMT_POWERS_OF_10</a>(1000000000ull),</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;  10000000000000000000ull</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;};</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160; </div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;<span class="comment">// Normalized 64-bit significands of pow(10, k), for k = -348, -340, ..., 340.</span></div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;<span class="comment">// These are generated by support/compute-powers.py.</span></div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;<span class="keyword">const</span> uint64_t <a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html#a4984044ce1b065540381b3694eb994b0">basic_data&lt;T&gt;::POW10_SIGNIFICANDS</a>[] = {</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;  0xfa8fd5a0081c0288, 0xbaaee17fa23ebf76, 0x8b16fb203055ac76,</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;  0xcf42894a5dce35ea, 0x9a6bb0aa55653b2d, 0xe61acf033d1a45df,</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;  0xab70fe17c79ac6ca, 0xff77b1fcbebcdc4f, 0xbe5691ef416bd60c,</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;  0x8dd01fad907ffc3c, 0xd3515c2831559a83, 0x9d71ac8fada6c9b5,</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;  0xea9c227723ee8bcb, 0xaecc49914078536d, 0x823c12795db6ce57,</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;  0xc21094364dfb5637, 0x9096ea6f3848984f, 0xd77485cb25823ac7,</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;  0xa086cfcd97bf97f4, 0xef340a98172aace5, 0xb23867fb2a35b28e,</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;  0x84c8d4dfd2c63f3b, 0xc5dd44271ad3cdba, 0x936b9fcebb25c996,</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;  0xdbac6c247d62a584, 0xa3ab66580d5fdaf6, 0xf3e2f893dec3f126,</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;  0xb5b5ada8aaff80b8, 0x87625f056c7c4a8b, 0xc9bcff6034c13053,</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;  0x964e858c91ba2655, 0xdff9772470297ebd, 0xa6dfbd9fb8e5b88f,</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;  0xf8a95fcf88747d94, 0xb94470938fa89bcf, 0x8a08f0f8bf0f156b,</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;  0xcdb02555653131b6, 0x993fe2c6d07b7fac, 0xe45c10c42a2b3b06,</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;  0xaa242499697392d3, 0xfd87b5f28300ca0e, 0xbce5086492111aeb,</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;  0x8cbccc096f5088cc, 0xd1b71758e219652c, 0x9c40000000000000,</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;  0xe8d4a51000000000, 0xad78ebc5ac620000, 0x813f3978f8940984,</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;  0xc097ce7bc90715b3, 0x8f7e32ce7bea5c70, 0xd5d238a4abe98068,</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;  0x9f4f2726179a2245, 0xed63a231d4c4fb27, 0xb0de65388cc8ada8,</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;  0x83c7088e1aab65db, 0xc45d1df942711d9a, 0x924d692ca61be758,</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;  0xda01ee641a708dea, 0xa26da3999aef774a, 0xf209787bb47d6b85,</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;  0xb454e4a179dd1877, 0x865b86925b9bc5c2, 0xc83553c5c8965d3d,</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;  0x952ab45cfa97a0b3, 0xde469fbd99a05fe3, 0xa59bc234db398c25,</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;  0xf6c69a72a3989f5c, 0xb7dcbf5354e9bece, 0x88fcf317f22241e2,</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;  0xcc20ce9bd35c78a5, 0x98165af37b2153df, 0xe2a0b5dc971f303a,</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;  0xa8d9d1535ce3b396, 0xfb9b7cd9a4a7443c, 0xbb764c4ca7a44410,</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;  0x8bab8eefb6409c1a, 0xd01fef10a657842c, 0x9b10a4e5e9913129,</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;  0xe7109bfba19c0c9d, 0xac2820d9623bf429, 0x80444b5e7aa7cf85,</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;  0xbf21e44003acdd2d, 0x8e679c2f5e44ff8f, 0xd433179d9c8cb841,</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;  0x9e19db92b4e31ba9, 0xeb96bf6ebadf77d9, 0xaf87023b9bf0ee6b,</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;};</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160; </div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;<span class="comment">// Binary exponents of pow(10, k), for k = -348, -340, ..., 340, corresponding</span></div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;<span class="comment">// to significands above.</span></div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;<span class="keyword">const</span> int16_t <a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html#ae51c63ec91f02e2dad5c1d3eedb7b532">basic_data&lt;T&gt;::POW10_EXPONENTS</a>[] = {</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;  -1220, -1193, -1166, -1140, -1113, -1087, -1060, -1034, -1007,  -980,  -954,</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;   -927,  -901,  -874,  -847,  -821,  -794,  -768,  -741,  -715,  -688,  -661,</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;   -635,  -608,  -582,  -555,  -529,  -502,  -475,  -449,  -422,  -396,  -369,</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;   -343,  -316,  -289,  -263,  -236,  -210,  -183,  -157,  -130,  -103,   -77,</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;    -50,   -24,     3,    30,    56,    83,   109,   136,   162,   189,   216,</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;    242,   269,   295,   322,   348,   375,   402,   428,   455,   481,   508,</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;    534,   561,   588,   614,   641,   667,   694,   720,   747,   774,   800,</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;    827,   853,   880,   907,   933,   960,   986,  1013,  1039,  1066</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;};</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160; </div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt; <span class="keyword">const</span> <span class="keywordtype">char</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html#ad9d536a7e57a5e2dd100c1cbbb4f1100">basic_data&lt;T&gt;::FOREGROUND_COLOR</a>[] = <span class="stringliteral">&quot;\x1b[38;2;&quot;</span>;</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt; <span class="keyword">const</span> <span class="keywordtype">char</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html#a5ea6f88946a0959275332ac157eb9775">basic_data&lt;T&gt;::BACKGROUND_COLOR</a>[] = <span class="stringliteral">&quot;\x1b[48;2;&quot;</span>;</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt; <span class="keyword">const</span> <span class="keywordtype">char</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html#a6da82443fd09335fe5cbe3fe39cbc97b">basic_data&lt;T&gt;::RESET_COLOR</a>[] = <span class="stringliteral">&quot;\x1b[0m&quot;</span>;</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt; <span class="keyword">const</span> <span class="keywordtype">wchar_t</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html#a684a3b8ed9c908d5c1d4aea407ac18ae">basic_data&lt;T&gt;::WRESET_COLOR</a>[] = L<span class="stringliteral">&quot;\x1b[0m&quot;</span>;</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160; </div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;<span class="comment">// A handmade floating-point number f * pow(2, e).</span></div>
<div class="line"><a name="l00353"></a><span class="lineno"><a class="line" href="classfmt_1_1v5_1_1internal_1_1fp.html">  353</a></span>&#160;<span class="keyword">class </span><a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html">fp</a> {</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;  <span class="keyword">typedef</span> uint64_t significand_type;</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160; </div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;  <span class="comment">// All sizes are in bits.</span></div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;  <span class="keyword">static</span> <a class="code" href="core_8h.html#af4388801466a5994a363d6005616371a">FMT_CONSTEXPR_DECL</a> <span class="keyword">const</span> <span class="keywordtype">int</span> char_size =</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;    std::numeric_limits&lt;unsigned char&gt;::digits;</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;  <span class="comment">// Subtract 1 to account for an implicit most significant bit in the</span></div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;  <span class="comment">// normalized form.</span></div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;  <span class="keyword">static</span> <a class="code" href="core_8h.html#af4388801466a5994a363d6005616371a">FMT_CONSTEXPR_DECL</a> <span class="keyword">const</span> <span class="keywordtype">int</span> double_significand_size =</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    std::numeric_limits&lt;double&gt;::digits - 1;</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;  <span class="keyword">static</span> <a class="code" href="core_8h.html#af4388801466a5994a363d6005616371a">FMT_CONSTEXPR_DECL</a> <span class="keyword">const</span> uint64_t implicit_bit =</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;    1ull &lt;&lt; double_significand_size;</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160; </div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00368"></a><span class="lineno"><a class="line" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">  368</a></span>&#160;  significand_type <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a>;</div>
<div class="line"><a name="l00369"></a><span class="lineno"><a class="line" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">  369</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a>;</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160; </div>
<div class="line"><a name="l00371"></a><span class="lineno"><a class="line" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad0175b9acfb79c562984ed002fe09c53">  371</a></span>&#160;  <span class="keyword">static</span> <a class="code" href="core_8h.html#af4388801466a5994a363d6005616371a">FMT_CONSTEXPR_DECL</a> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad0175b9acfb79c562984ed002fe09c53">significand_size</a> =</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;    <span class="keyword">sizeof</span>(significand_type) * char_size;</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160; </div>
<div class="line"><a name="l00374"></a><span class="lineno"><a class="line" href="classfmt_1_1v5_1_1internal_1_1fp.html#a4461b3a2cdedfe644911f3984180a0b9">  374</a></span>&#160;  <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a4461b3a2cdedfe644911f3984180a0b9">fp</a>(): <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a>(0), <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a>(0) {}</div>
<div class="line"><a name="l00375"></a><span class="lineno"><a class="line" href="classfmt_1_1v5_1_1internal_1_1fp.html#a268d69d61ba1e06520408dfdca76bba1">  375</a></span>&#160;  <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a268d69d61ba1e06520408dfdca76bba1">fp</a>(uint64_t f_val, <span class="keywordtype">int</span> e_val): <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a>(f_val), <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a>(e_val) {}</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160; </div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;  <span class="comment">// Constructs fp from an IEEE754 double. It is a template to prevent compile</span></div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;  <span class="comment">// errors on platforms where double is not IEEE754.</span></div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Double&gt;</div>
<div class="line"><a name="l00380"></a><span class="lineno"><a class="line" href="classfmt_1_1v5_1_1internal_1_1fp.html#adfdc87ad85220297755fbe7c6a8e1590">  380</a></span>&#160;  <span class="keyword">explicit</span> <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#adfdc87ad85220297755fbe7c6a8e1590">fp</a>(Double d) {</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;    <span class="comment">// Assume double is in the format [sign][exponent][significand].</span></div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;    <span class="keyword">typedef</span> std::numeric_limits&lt;Double&gt; limits;</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> double_size = static_cast&lt;int&gt;(<span class="keyword">sizeof</span>(Double) * char_size);</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> exponent_size =</div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;      double_size - double_significand_size - 1;  <span class="comment">// -1 for sign</span></div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;    <span class="keyword">const</span> uint64_t significand_mask = implicit_bit - 1;</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;    <span class="keyword">const</span> uint64_t exponent_mask = (~0ull &gt;&gt; 1) &amp; ~significand_mask;</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> exponent_bias = (1 &lt;&lt; exponent_size) - limits::max_exponent - 1;</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;    <span class="keyword">auto</span> u = bit_cast&lt;uint64_t&gt;(d);</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;    <span class="keyword">auto</span> biased_e = (u &amp; exponent_mask) &gt;&gt; double_significand_size;</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;    <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a> = u &amp; significand_mask;</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;    <span class="keywordflow">if</span> (biased_e != 0)</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;      <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a> += implicit_bit;</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;      biased_e = 1;  <span class="comment">// Subnormals use biased exponent 1 (min exponent).</span></div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;    <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a> = static_cast&lt;int&gt;(biased_e - exponent_bias - double_significand_size);</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;  }</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160; </div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;  <span class="comment">// Normalizes the value converted from double and multiplied by (1 &lt;&lt; SHIFT).</span></div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;  <span class="keyword">template</span> &lt;<span class="keywordtype">int</span> SHIFT = 0&gt;</div>
<div class="line"><a name="l00401"></a><span class="lineno"><a class="line" href="classfmt_1_1v5_1_1internal_1_1fp.html#ab59ad7dfcd4ed603592d93cf4b7aaa42">  401</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ab59ad7dfcd4ed603592d93cf4b7aaa42">normalize</a>() {</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;    <span class="comment">// Handle subnormals.</span></div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;    <span class="keyword">auto</span> shifted_implicit_bit = implicit_bit &lt;&lt; SHIFT;</div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;    <span class="keywordflow">while</span> ((<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a> &amp; shifted_implicit_bit) == 0) {</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;      <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a> &lt;&lt;= 1;</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;      --<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a>;</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;    }</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;    <span class="comment">// Subtract 1 to account for hidden bit.</span></div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;    <span class="keyword">auto</span> offset = <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad0175b9acfb79c562984ed002fe09c53">significand_size</a> - double_significand_size - SHIFT - 1;</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;    <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a> &lt;&lt;= offset;</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;    <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a> -= offset;</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;  }</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160; </div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;  <span class="comment">// Compute lower and upper boundaries (m^- and m^+ in the Grisu paper), where</span></div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;  <span class="comment">// a boundary is a value half way between the number and its predecessor</span></div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;  <span class="comment">// (lower) or successor (upper). The upper boundary is normalized and lower</span></div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;  <span class="comment">// has the same exponent but may be not normalized.</span></div>
<div class="line"><a name="l00418"></a><span class="lineno"><a class="line" href="classfmt_1_1v5_1_1internal_1_1fp.html#ab9070b4fc350e45c0d3c9685e8240fc2">  418</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ab9070b4fc350e45c0d3c9685e8240fc2">compute_boundaries</a>(<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html">fp</a> &amp;lower, <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html">fp</a> &amp;upper)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;    lower = <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a> == implicit_bit ?</div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;          <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a4461b3a2cdedfe644911f3984180a0b9">fp</a>((<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a> &lt;&lt; 2) - 1, <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a> - 2) : <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a4461b3a2cdedfe644911f3984180a0b9">fp</a>((<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a> &lt;&lt; 1) - 1, <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a> - 1);</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;    upper = <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a4461b3a2cdedfe644911f3984180a0b9">fp</a>((<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a> &lt;&lt; 1) + 1, <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a> - 1);</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;    upper.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ab59ad7dfcd4ed603592d93cf4b7aaa42">normalize</a>&lt;1&gt;();  <span class="comment">// 1 is to account for the exponent shift above.</span></div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;    lower.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a> &lt;&lt;= lower.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a> - upper.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a>;</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;    lower.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a> = upper.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a>;</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;  }</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;};</div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160; </div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;<span class="comment">// Returns an fp number representing x - y. Result may not be normalized.</span></div>
<div class="line"><a name="l00429"></a><span class="lineno"><a class="line" href="namespacefmt_1_1v5_1_1internal.html#a96be9ab86d7703a1aace4eda80007e69">  429</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html">fp</a> <a class="code" href="namespacefmt_1_1v5_1_1internal.html#a96be9ab86d7703a1aace4eda80007e69">operator-</a>(<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html">fp</a> x, <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html">fp</a> y) {</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;  <a class="code" href="core_8h.html#a03e7ee720f43adc7d83c652a6a5dd5f8">FMT_ASSERT</a>(x.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a> &gt;= y.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a> &amp;&amp; x.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a> == y.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a>, <span class="stringliteral">&quot;invalid operands&quot;</span>);</div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;  <span class="keywordflow">return</span> <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html">fp</a>(x.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a> - y.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a>, x.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a>);</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;}</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160; </div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;<span class="comment">// Computes an fp number r with r.f = x.f * y.f / pow(2, 64) rounded to nearest</span></div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;<span class="comment">// with half-up tie breaking, r.e = x.e + y.e + 64. Result may not be normalized.</span></div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;<a class="code" href="core_8h.html#a9a4960b70582ed2620911a0b75dce0b5">FMT_API</a> fp <a class="code" href="namespacefmt_1_1v5_1_1internal.html#a3d8332f4e1ff7eb4cdacf32a3fdf972a">operator*</a>(fp x, fp y);</div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160; </div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;<span class="comment">// Returns cached power (of 10) c_k = c_k.f * pow(2, c_k.e) such that its</span></div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;<span class="comment">// (binary) exponent satisfies min_exponent &lt;= c_k.e &lt;= min_exponent + 3.</span></div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;<a class="code" href="core_8h.html#a9a4960b70582ed2620911a0b75dce0b5">FMT_API</a> fp <a class="code" href="namespacefmt_1_1v5_1_1internal.html#a6a266d9a7b8249c93b139f1fa499a45d">get_cached_power</a>(<span class="keywordtype">int</span> min_exponent, <span class="keywordtype">int</span> &amp;pow10_exponent);</div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160; </div>
<div class="line"><a name="l00442"></a><span class="lineno"><a class="line" href="namespacefmt_1_1v5_1_1internal.html#a3d8332f4e1ff7eb4cdacf32a3fdf972a">  442</a></span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html">fp</a> <a class="code" href="namespacefmt_1_1v5_1_1internal.html#a3d8332f4e1ff7eb4cdacf32a3fdf972a">operator*</a>(<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html">fp</a> x, <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html">fp</a> y) {</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;  <span class="comment">// Multiply 32-bit parts of significands.</span></div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;  uint64_t mask = (1ULL &lt;&lt; 32) - 1;</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;  uint64_t a = x.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a> &gt;&gt; 32, b = x.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a> &amp; mask;</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;  uint64_t c = y.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a> &gt;&gt; 32, d = y.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a> &amp; mask;</div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;  uint64_t ac = a * c, bc = b * c, ad = a * d, bd = b * d;</div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;  <span class="comment">// Compute mid 64-bit of result and round.</span></div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;  uint64_t mid = (bd &gt;&gt; 32) + (ad &amp; mask) + (bc &amp; mask) + (1U &lt;&lt; 31);</div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;  <span class="keywordflow">return</span> <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html">fp</a>(ac + (ad &gt;&gt; 32) + (bc &gt;&gt; 32) + (mid &gt;&gt; 32), x.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a> + y.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a> + 64);</div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;}</div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160; </div>
<div class="line"><a name="l00453"></a><span class="lineno"><a class="line" href="namespacefmt_1_1v5_1_1internal.html#a6a266d9a7b8249c93b139f1fa499a45d">  453</a></span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html">fp</a> <a class="code" href="namespacefmt_1_1v5_1_1internal.html#a6a266d9a7b8249c93b139f1fa499a45d">get_cached_power</a>(<span class="keywordtype">int</span> min_exponent, <span class="keywordtype">int</span> &amp;pow10_exponent) {</div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;  <span class="keyword">const</span> <span class="keywordtype">double</span> one_over_log2_10 = 0.30102999566398114;  <span class="comment">// 1 / log2(10)</span></div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;  <span class="keywordtype">int</span> index = static_cast&lt;int&gt;(std::ceil(</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;        (min_exponent + <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad0175b9acfb79c562984ed002fe09c53">fp::significand_size</a> - 1) * one_over_log2_10));</div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;  <span class="comment">// Decimal exponent of the first (smallest) cached power of 10.</span></div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;  <span class="keyword">const</span> <span class="keywordtype">int</span> first_dec_exp = -348;</div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;  <span class="comment">// Difference between 2 consecutive decimal exponents in cached powers of 10.</span></div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;  <span class="keyword">const</span> <span class="keywordtype">int</span> dec_exp_step = 8;</div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;  index = (index - first_dec_exp - 1) / dec_exp_step + 1;</div>
<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;  pow10_exponent = first_dec_exp + index * dec_exp_step;</div>
<div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;  <span class="keywordflow">return</span> <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html">fp</a>(<a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html#a4984044ce1b065540381b3694eb994b0">data::POW10_SIGNIFICANDS</a>[index], <a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html#ae51c63ec91f02e2dad5c1d3eedb7b532">data::POW10_EXPONENTS</a>[index]);</div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;}</div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160; </div>
<div class="line"><a name="l00466"></a><span class="lineno"><a class="line" href="namespacefmt_1_1v5_1_1internal.html#a5d09560672b4a60a1414fa7321b9ea66">  466</a></span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> <span class="keywordtype">bool</span> <a class="code" href="namespacefmt_1_1v5_1_1internal.html#a5d09560672b4a60a1414fa7321b9ea66">grisu2_round</a>(</div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;    <span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> &amp;size, <span class="keywordtype">int</span> max_digits, uint64_t delta,</div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;    uint64_t remainder, uint64_t exp, uint64_t diff, <span class="keywordtype">int</span> &amp;exp10) {</div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;  <span class="keywordflow">while</span> (remainder &lt; diff &amp;&amp; delta - remainder &gt;= exp &amp;&amp;</div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;        (remainder + exp &lt; diff || diff - remainder &gt; remainder + exp - diff)) {</div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;    --buf[size - 1];</div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;    remainder += exp;</div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;  }</div>
<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;  <span class="keywordflow">if</span> (size &gt; max_digits) {</div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;    --size;</div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;    ++exp10;</div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;    <span class="keywordflow">if</span> (buf[size] &gt;= <span class="charliteral">&#39;5&#39;</span>)</div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;      <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;  }</div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;}</div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160; </div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;<span class="comment">// Generates output using Grisu2 digit-gen algorithm.</span></div>
<div class="line"><a name="l00484"></a><span class="lineno"><a class="line" href="namespacefmt_1_1v5_1_1internal.html#aa8305888233bc94e346b9c162f6a8f18">  484</a></span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> <span class="keywordtype">bool</span> <a class="code" href="namespacefmt_1_1v5_1_1internal.html#aa8305888233bc94e346b9c162f6a8f18">grisu2_gen_digits</a>(</div>
<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;    <span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> &amp;size, uint32_t hi, uint64_t lo, <span class="keywordtype">int</span> &amp;exp,</div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;    uint64_t delta, <span class="keyword">const</span> <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html">fp</a> &amp;one, <span class="keyword">const</span> <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html">fp</a> &amp;diff, <span class="keywordtype">int</span> max_digits) {</div>
<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;  <span class="comment">// Generate digits for the most significant part (hi).</span></div>
<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;  <span class="keywordflow">while</span> (exp &gt; 0) {</div>
<div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;    uint32_t digit = 0;</div>
<div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;    <span class="comment">// This optimization by miloyip reduces the number of integer divisions by</span></div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;    <span class="comment">// one per iteration.</span></div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;    <span class="keywordflow">switch</span> (exp) {</div>
<div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;    <span class="keywordflow">case</span> 10: digit = hi / 1000000000; hi %= 1000000000; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;    <span class="keywordflow">case</span>  9: digit = hi /  100000000; hi %=  100000000; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;    <span class="keywordflow">case</span>  8: digit = hi /   10000000; hi %=   10000000; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;    <span class="keywordflow">case</span>  7: digit = hi /    1000000; hi %=    1000000; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;    <span class="keywordflow">case</span>  6: digit = hi /     100000; hi %=     100000; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;    <span class="keywordflow">case</span>  5: digit = hi /      10000; hi %=      10000; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;    <span class="keywordflow">case</span>  4: digit = hi /       1000; hi %=       1000; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;    <span class="keywordflow">case</span>  3: digit = hi /        100; hi %=        100; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;    <span class="keywordflow">case</span>  2: digit = hi /         10; hi %=         10; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;    <span class="keywordflow">case</span>  1: digit = hi;              hi =           0; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;    <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;      <a class="code" href="core_8h.html#a03e7ee720f43adc7d83c652a6a5dd5f8">FMT_ASSERT</a>(<span class="keyword">false</span>, <span class="stringliteral">&quot;invalid number of digits&quot;</span>);</div>
<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;    }</div>
<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;    <span class="keywordflow">if</span> (digit != 0 || size != 0)</div>
<div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;      buf[size++] = static_cast&lt;char&gt;(<span class="charliteral">&#39;0&#39;</span> + digit);</div>
<div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;    --exp;</div>
<div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;    uint64_t remainder = (static_cast&lt;uint64_t&gt;(hi) &lt;&lt; -one.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a>) + lo;</div>
<div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;    <span class="keywordflow">if</span> (remainder &lt;= delta || size &gt; max_digits) {</div>
<div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;      <span class="keywordflow">return</span> <a class="code" href="namespacefmt_1_1v5_1_1internal.html#a5d09560672b4a60a1414fa7321b9ea66">grisu2_round</a>(</div>
<div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;            buf, size, max_digits, delta, remainder,</div>
<div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;            static_cast&lt;uint64_t&gt;(<a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html#a195c2b45ae9bb0a953156d3ae7eb35ca">data::POWERS_OF_10_32</a>[exp]) &lt;&lt; -one.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a>,</div>
<div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;            diff.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a>, exp);</div>
<div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;    }</div>
<div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;  }</div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;  <span class="comment">// Generate digits for the least significant part (lo).</span></div>
<div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;  <span class="keywordflow">for</span> (;;) {</div>
<div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;    lo *= 10;</div>
<div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;    delta *= 10;</div>
<div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;    <span class="keywordtype">char</span> digit = static_cast&lt;char&gt;(lo &gt;&gt; -one.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a>);</div>
<div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;    <span class="keywordflow">if</span> (digit != 0 || size != 0)</div>
<div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;      buf[size++] = static_cast&lt;char&gt;(<span class="charliteral">&#39;0&#39;</span> + digit);</div>
<div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;    lo &amp;= one.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a> - 1;</div>
<div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;    --exp;</div>
<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;    <span class="keywordflow">if</span> (lo &lt; delta || size &gt; max_digits) {</div>
<div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;      <span class="keywordflow">return</span> <a class="code" href="namespacefmt_1_1v5_1_1internal.html#a5d09560672b4a60a1414fa7321b9ea66">grisu2_round</a>(buf, size, max_digits, delta, lo, one.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a>,</div>
<div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;                          diff.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a> * <a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html#a195c2b45ae9bb0a953156d3ae7eb35ca">data::POWERS_OF_10_32</a>[-exp], exp);</div>
<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;    }</div>
<div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;  }</div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;}</div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160; </div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;<span class="preprocessor">#if FMT_CLANG_VERSION</span></div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;<span class="preprocessor"># define FMT_FALLTHROUGH [[clang::fallthrough]];</span></div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;<span class="preprocessor">#elif FMT_GCC_VERSION &gt;= 700</span></div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;<span class="preprocessor"># define FMT_FALLTHROUGH [[gnu::fallthrough]];</span></div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00538"></a><span class="lineno"><a class="line" href="format-inl_8h.html#a35d4bc2bf717ac7731de7713c54175bb">  538</a></span>&#160;<span class="preprocessor"># define FMT_FALLTHROUGH</span></div>
<div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160; </div>
<div class="line"><a name="l00541"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html">  541</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html">gen_digits_params</a> {</div>
<div class="line"><a name="l00542"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html#ae5d119f024f6844f366eacbb80dc905b">  542</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html#ae5d119f024f6844f366eacbb80dc905b">num_digits</a>;</div>
<div class="line"><a name="l00543"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html#a46a9d3e58fa1f2918ee6285933762786">  543</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html#a46a9d3e58fa1f2918ee6285933762786">fixed</a>;</div>
<div class="line"><a name="l00544"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html#a4d9d74312532c965bddc7eb88d79600d">  544</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html#a4d9d74312532c965bddc7eb88d79600d">upper</a>;</div>
<div class="line"><a name="l00545"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html#af94ccb0990229d78c551373b07abb3b2">  545</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html#af94ccb0990229d78c551373b07abb3b2">trailing_zeros</a>;</div>
<div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160;};</div>
<div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160; </div>
<div class="line"><a name="l00548"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html">  548</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html">prettify_handler</a> {</div>
<div class="line"><a name="l00549"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#a218e3b77fad28065c54461d33f82c8fb">  549</a></span>&#160;  <span class="keywordtype">char</span> *<a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#a218e3b77fad28065c54461d33f82c8fb">data</a>;</div>
<div class="line"><a name="l00550"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#aeefd7bd2fef0e07643645f824d347ee2">  550</a></span>&#160;  ptrdiff_t <a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#aeefd7bd2fef0e07643645f824d347ee2">size</a>;</div>
<div class="line"><a name="l00551"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#aa4a4294911effee4c142bc68fcdd2518">  551</a></span>&#160;  <a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html">buffer</a> &amp;<a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#aa4a4294911effee4c142bc68fcdd2518">buf</a>;</div>
<div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160; </div>
<div class="line"><a name="l00553"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#a4af3a99f9adb0a32c74ce88f1386b986">  553</a></span>&#160;  <span class="keyword">explicit</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#a4af3a99f9adb0a32c74ce88f1386b986">prettify_handler</a>(<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html">buffer</a> &amp;b, ptrdiff_t n)</div>
<div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160;    : <a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html">data</a>(b.<a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html">data</a>()), <a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#aeefd7bd2fef0e07643645f824d347ee2">size</a>(n), <a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#aa4a4294911effee4c142bc68fcdd2518">buf</a>(b) {}</div>
<div class="line"><a name="l00555"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#afeb64699e57c8b20dff3b44048fb60ac">  555</a></span>&#160;  <a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#afeb64699e57c8b20dff3b44048fb60ac">~prettify_handler</a>() {</div>
<div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160;    assert(<a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#aa4a4294911effee4c142bc68fcdd2518">buf</a>.<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#ac4761deba75a7238ae29243b159b9943">size</a>() &gt;= <a class="code" href="namespacefmt_1_1v5_1_1internal.html#abef3b695050c4132b4fc4d7f256b9580">to_unsigned</a>(<a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#aeefd7bd2fef0e07643645f824d347ee2">size</a>));</div>
<div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;    <a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#aa4a4294911effee4c142bc68fcdd2518">buf</a>.<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#af20fa1cd5e5bd230ab1d4e89c6aead38">resize</a>(<a class="code" href="namespacefmt_1_1v5_1_1internal.html#abef3b695050c4132b4fc4d7f256b9580">to_unsigned</a>(<a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#aeefd7bd2fef0e07643645f824d347ee2">size</a>));</div>
<div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;  }</div>
<div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160; </div>
<div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> F&gt;</div>
<div class="line"><a name="l00561"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#a44f39b58e69588b81665ce2f0fb2e8e6">  561</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#a44f39b58e69588b81665ce2f0fb2e8e6">insert</a>(ptrdiff_t pos, ptrdiff_t n, F f) {</div>
<div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;    std::memmove(<a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html">data</a> + pos + n, <a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html">data</a> + pos, <a class="code" href="namespacefmt_1_1v5_1_1internal.html#abef3b695050c4132b4fc4d7f256b9580">to_unsigned</a>(<a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#aeefd7bd2fef0e07643645f824d347ee2">size</a> - pos));</div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;    f(<a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html">data</a> + pos);</div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;    <a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#aeefd7bd2fef0e07643645f824d347ee2">size</a> += n;</div>
<div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;  }</div>
<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160; </div>
<div class="line"><a name="l00567"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#ad4387eb92b404732e7cc8b4548fc9abe">  567</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#ad4387eb92b404732e7cc8b4548fc9abe">insert</a>(ptrdiff_t pos, <span class="keywordtype">char</span> c) {</div>
<div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;    std::memmove(<a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html">data</a> + pos + 1, <a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html">data</a> + pos, <a class="code" href="namespacefmt_1_1v5_1_1internal.html#abef3b695050c4132b4fc4d7f256b9580">to_unsigned</a>(<a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#aeefd7bd2fef0e07643645f824d347ee2">size</a> - pos));</div>
<div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160;    <a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html">data</a>[pos] = c;</div>
<div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160;    ++<a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#aeefd7bd2fef0e07643645f824d347ee2">size</a>;</div>
<div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160;  }</div>
<div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160; </div>
<div class="line"><a name="l00573"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#a5a8b13e38107753a839767adae553ed2">  573</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#a5a8b13e38107753a839767adae553ed2">append</a>(ptrdiff_t n, <span class="keywordtype">char</span> c) {</div>
<div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;    std::uninitialized_fill_n(<a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html">data</a> + <a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#aeefd7bd2fef0e07643645f824d347ee2">size</a>, n, c);</div>
<div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;    <a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#aeefd7bd2fef0e07643645f824d347ee2">size</a> += n;</div>
<div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;  }</div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160; </div>
<div class="line"><a name="l00578"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#aa0537d2fca130c630cdbc7d7e06bc4cf">  578</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#aa0537d2fca130c630cdbc7d7e06bc4cf">append</a>(<span class="keywordtype">char</span> c) { <a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html">data</a>[<a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#aeefd7bd2fef0e07643645f824d347ee2">size</a>++] = c; }</div>
<div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160; </div>
<div class="line"><a name="l00580"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#ab939ca54a7a5ba0a79c2232a5b3aff46">  580</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#ab939ca54a7a5ba0a79c2232a5b3aff46">remove_trailing</a>(<span class="keywordtype">char</span> c) {</div>
<div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;    <span class="keywordflow">while</span> (<a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html">data</a>[<a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#aeefd7bd2fef0e07643645f824d347ee2">size</a> - 1] == c) --<a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#aeefd7bd2fef0e07643645f824d347ee2">size</a>;</div>
<div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;  }</div>
<div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;};</div>
<div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160; </div>
<div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;<span class="comment">// Writes the exponent exp in the form &quot;[+-]d{2,3}&quot; to buffer.</span></div>
<div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Handler&gt;</div>
<div class="line"><a name="l00587"></a><span class="lineno"><a class="line" href="namespacefmt_1_1v5_1_1internal.html#a80e439a6cba95b74e9324248a41b1005">  587</a></span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> <span class="keywordtype">void</span> <a class="code" href="namespacefmt_1_1v5_1_1internal.html#a80e439a6cba95b74e9324248a41b1005">write_exponent</a>(<span class="keywordtype">int</span> exp, Handler &amp;&amp;h) {</div>
<div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;  <a class="code" href="core_8h.html#a03e7ee720f43adc7d83c652a6a5dd5f8">FMT_ASSERT</a>(-1000 &lt; exp &amp;&amp; exp &lt; 1000, <span class="stringliteral">&quot;exponent out of range&quot;</span>);</div>
<div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;  <span class="keywordflow">if</span> (exp &lt; 0) {</div>
<div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;    h.append(<span class="charliteral">&#39;-&#39;</span>);</div>
<div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;    exp = -exp;</div>
<div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160;    h.append(<span class="charliteral">&#39;+&#39;</span>);</div>
<div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;  }</div>
<div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;  <span class="keywordflow">if</span> (exp &gt;= 100) {</div>
<div class="line"><a name="l00596"></a><span class="lineno">  596</span>&#160;    h.append(static_cast&lt;char&gt;(<span class="charliteral">&#39;0&#39;</span> + exp / 100));</div>
<div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160;    exp %= 100;</div>
<div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *d = <a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html#ad815e597b46d92023beb025b464b4520">data::DIGITS</a> + exp * 2;</div>
<div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;    h.append(d[0]);</div>
<div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;    h.append(d[1]);</div>
<div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *d = <a class="code" href="structfmt_1_1v5_1_1internal_1_1basic__data.html#ad815e597b46d92023beb025b464b4520">data::DIGITS</a> + exp * 2;</div>
<div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;    h.append(d[0]);</div>
<div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160;    h.append(d[1]);</div>
<div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160;  }</div>
<div class="line"><a name="l00606"></a><span class="lineno">  606</span>&#160;}</div>
<div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160; </div>
<div class="line"><a name="l00608"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1fill.html">  608</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structfmt_1_1v5_1_1internal_1_1fill.html">fill</a> {</div>
<div class="line"><a name="l00609"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1fill.html#af4901adffe747a5563f73ec9e640420c">  609</a></span>&#160;  <span class="keywordtype">size_t</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1fill.html#af4901adffe747a5563f73ec9e640420c">n</a>;</div>
<div class="line"><a name="l00610"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1fill.html#a8ac696cf33afd220f17fea77b4fd9df2">  610</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1fill.html#a8ac696cf33afd220f17fea77b4fd9df2">operator()</a>(<span class="keywordtype">char</span> *buf)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;    buf[0] = <span class="charliteral">&#39;0&#39;</span>;</div>
<div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;    buf[1] = <span class="charliteral">&#39;.&#39;</span>;</div>
<div class="line"><a name="l00613"></a><span class="lineno">  613</span>&#160;    std::uninitialized_fill_n(buf + 2, <a class="code" href="structfmt_1_1v5_1_1internal_1_1fill.html#af4901adffe747a5563f73ec9e640420c">n</a>, <span class="charliteral">&#39;0&#39;</span>);</div>
<div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160;  }</div>
<div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160;};</div>
<div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160; </div>
<div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;<span class="comment">// The number is given as v = f * pow(10, exp), where f has size digits.</span></div>
<div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Handler&gt;</div>
<div class="line"><a name="l00619"></a><span class="lineno"><a class="line" href="namespacefmt_1_1v5_1_1internal.html#a171b42c0035379bd3c3983f573ee09db">  619</a></span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> <span class="keywordtype">void</span> <a class="code" href="namespacefmt_1_1v5_1_1internal.html#a171b42c0035379bd3c3983f573ee09db">grisu2_prettify</a>(<span class="keyword">const</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html">gen_digits_params</a> &amp;params,</div>
<div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;                              <span class="keywordtype">int</span> size, <span class="keywordtype">int</span> exp, Handler &amp;&amp;handler) {</div>
<div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;  <span class="keywordflow">if</span> (!params.<a class="code" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html#a46a9d3e58fa1f2918ee6285933762786">fixed</a>) {</div>
<div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;    <span class="comment">// Insert a decimal point after the first digit and add an exponent.</span></div>
<div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;    handler.insert(1, <span class="charliteral">&#39;.&#39;</span>);</div>
<div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160;    exp += size - 1;</div>
<div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;    <span class="keywordflow">if</span> (size &lt; params.<a class="code" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html#ae5d119f024f6844f366eacbb80dc905b">num_digits</a>)</div>
<div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;      handler.append(params.<a class="code" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html#ae5d119f024f6844f366eacbb80dc905b">num_digits</a> - size, <span class="charliteral">&#39;0&#39;</span>);</div>
<div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160;    handler.append(params.<a class="code" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html#a4d9d74312532c965bddc7eb88d79600d">upper</a> ? <span class="charliteral">&#39;E&#39;</span> : <span class="charliteral">&#39;e&#39;</span>);</div>
<div class="line"><a name="l00628"></a><span class="lineno">  628</span>&#160;    <a class="code" href="namespacefmt_1_1v5_1_1internal.html#a80e439a6cba95b74e9324248a41b1005">write_exponent</a>(exp, handler);</div>
<div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;    <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;  }</div>
<div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;  <span class="comment">// pow(10, full_exp - 1) &lt;= v &lt;= pow(10, full_exp).</span></div>
<div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;  <span class="keywordtype">int</span> full_exp = size + exp;</div>
<div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;  <span class="keyword">const</span> <span class="keywordtype">int</span> exp_threshold = 21;</div>
<div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;  <span class="keywordflow">if</span> (size &lt;= full_exp &amp;&amp; full_exp &lt;= exp_threshold) {</div>
<div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;    <span class="comment">// 1234e7 -&gt; 12340000000[.0+]</span></div>
<div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;    handler.append(full_exp - size, <span class="charliteral">&#39;0&#39;</span>);</div>
<div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;    <span class="keywordtype">int</span> num_zeros = params.<a class="code" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html#ae5d119f024f6844f366eacbb80dc905b">num_digits</a> - full_exp;</div>
<div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160;    <span class="keywordflow">if</span> (num_zeros &gt; 0 &amp;&amp; params.<a class="code" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html#af94ccb0990229d78c551373b07abb3b2">trailing_zeros</a>) {</div>
<div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;      handler.append(<span class="charliteral">&#39;.&#39;</span>);</div>
<div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160;      handler.append(num_zeros, <span class="charliteral">&#39;0&#39;</span>);</div>
<div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160;    }</div>
<div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160;  } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (full_exp &gt; 0) {</div>
<div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160;    <span class="comment">// 1234e-2 -&gt; 12.34[0+]</span></div>
<div class="line"><a name="l00644"></a><span class="lineno">  644</span>&#160;    handler.insert(full_exp, <span class="charliteral">&#39;.&#39;</span>);</div>
<div class="line"><a name="l00645"></a><span class="lineno">  645</span>&#160;    <span class="keywordflow">if</span> (!params.<a class="code" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html#af94ccb0990229d78c551373b07abb3b2">trailing_zeros</a>) {</div>
<div class="line"><a name="l00646"></a><span class="lineno">  646</span>&#160;      <span class="comment">// Remove trailing zeros.</span></div>
<div class="line"><a name="l00647"></a><span class="lineno">  647</span>&#160;      handler.remove_trailing(<span class="charliteral">&#39;0&#39;</span>);</div>
<div class="line"><a name="l00648"></a><span class="lineno">  648</span>&#160;    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (params.<a class="code" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html#ae5d119f024f6844f366eacbb80dc905b">num_digits</a> &gt; size) {</div>
<div class="line"><a name="l00649"></a><span class="lineno">  649</span>&#160;      <span class="comment">// Add trailing zeros.</span></div>
<div class="line"><a name="l00650"></a><span class="lineno">  650</span>&#160;      ptrdiff_t num_zeros = params.<a class="code" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html#ae5d119f024f6844f366eacbb80dc905b">num_digits</a> - size;</div>
<div class="line"><a name="l00651"></a><span class="lineno">  651</span>&#160;      handler.append(num_zeros, <span class="charliteral">&#39;0&#39;</span>);</div>
<div class="line"><a name="l00652"></a><span class="lineno">  652</span>&#160;    }</div>
<div class="line"><a name="l00653"></a><span class="lineno">  653</span>&#160;  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00654"></a><span class="lineno">  654</span>&#160;    <span class="comment">// 1234e-6 -&gt; 0.001234</span></div>
<div class="line"><a name="l00655"></a><span class="lineno">  655</span>&#160;    handler.insert(0, 2 - full_exp, <a class="code" href="structfmt_1_1v5_1_1internal_1_1fill.html">fill</a>{<a class="code" href="namespacefmt_1_1v5_1_1internal.html#abef3b695050c4132b4fc4d7f256b9580">to_unsigned</a>(-full_exp)});</div>
<div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;  }</div>
<div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160;}</div>
<div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160; </div>
<div class="line"><a name="l00659"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1char__counter.html">  659</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structfmt_1_1v5_1_1internal_1_1char__counter.html">char_counter</a> {</div>
<div class="line"><a name="l00660"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1char__counter.html#a100c9c7d1618245f315f83af27110d2b">  660</a></span>&#160;  ptrdiff_t <a class="code" href="structfmt_1_1v5_1_1internal_1_1char__counter.html#a100c9c7d1618245f315f83af27110d2b">size</a>;</div>
<div class="line"><a name="l00661"></a><span class="lineno">  661</span>&#160; </div>
<div class="line"><a name="l00662"></a><span class="lineno">  662</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> F&gt;</div>
<div class="line"><a name="l00663"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1char__counter.html#acbc4f0c13cb3239010ff37f09049f72e">  663</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1char__counter.html#acbc4f0c13cb3239010ff37f09049f72e">insert</a>(ptrdiff_t, ptrdiff_t n, F) { <a class="code" href="structfmt_1_1v5_1_1internal_1_1char__counter.html#a100c9c7d1618245f315f83af27110d2b">size</a> += n; }</div>
<div class="line"><a name="l00664"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1char__counter.html#a51b440b6cd612f4b83c3c6c4816f6022">  664</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1char__counter.html#a51b440b6cd612f4b83c3c6c4816f6022">insert</a>(ptrdiff_t, <span class="keywordtype">char</span>) { ++<a class="code" href="structfmt_1_1v5_1_1internal_1_1char__counter.html#a100c9c7d1618245f315f83af27110d2b">size</a>; }</div>
<div class="line"><a name="l00665"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1char__counter.html#a0c5ba7253e9f0080698e4771cd4332b1">  665</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1char__counter.html#a0c5ba7253e9f0080698e4771cd4332b1">append</a>(ptrdiff_t n, <span class="keywordtype">char</span>) { <a class="code" href="structfmt_1_1v5_1_1internal_1_1char__counter.html#a100c9c7d1618245f315f83af27110d2b">size</a> += n; }</div>
<div class="line"><a name="l00666"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1char__counter.html#a30c9aa9646ae4d285e4f850dc7c7d51c">  666</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1char__counter.html#a30c9aa9646ae4d285e4f850dc7c7d51c">append</a>(<span class="keywordtype">char</span>) { ++<a class="code" href="structfmt_1_1v5_1_1internal_1_1char__counter.html#a100c9c7d1618245f315f83af27110d2b">size</a>; }</div>
<div class="line"><a name="l00667"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1char__counter.html#a19a71ff0f2ccc8895dcc5f2977b0c2cd">  667</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1char__counter.html#a19a71ff0f2ccc8895dcc5f2977b0c2cd">remove_trailing</a>(<span class="keywordtype">char</span>) {}</div>
<div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;};</div>
<div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160; </div>
<div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160;<span class="comment">// Converts format specifiers into parameters for digit generation and computes</span></div>
<div class="line"><a name="l00671"></a><span class="lineno">  671</span>&#160;<span class="comment">// output buffer size for a number in the range [pow(10, exp - 1), pow(10, exp)</span></div>
<div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160;<span class="comment">// or 0 if exp == 1.</span></div>
<div class="line"><a name="l00673"></a><span class="lineno"><a class="line" href="namespacefmt_1_1v5_1_1internal.html#a63add7333da71960d33855aa1489c2ee">  673</a></span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> <a class="code" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html">gen_digits_params</a> <a class="code" href="namespacefmt_1_1v5_1_1internal.html#a63add7333da71960d33855aa1489c2ee">process_specs</a>(<span class="keyword">const</span> <a class="code" href="structfmt_1_1v5_1_1core__format__specs.html">core_format_specs</a> &amp;specs,</div>
<div class="line"><a name="l00674"></a><span class="lineno">  674</span>&#160;                                         <span class="keywordtype">int</span> exp, <a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html">buffer</a> &amp;buf) {</div>
<div class="line"><a name="l00675"></a><span class="lineno">  675</span>&#160;  <span class="keyword">auto</span> params = <a class="code" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html">gen_digits_params</a>();</div>
<div class="line"><a name="l00676"></a><span class="lineno">  676</span>&#160;  <span class="keywordtype">int</span> num_digits = specs.<a class="code" href="structfmt_1_1v5_1_1core__format__specs.html#a445855f2d6d7886e1afb26e570618c47">precision</a> &gt;= 0 ? specs.<a class="code" href="structfmt_1_1v5_1_1core__format__specs.html#a445855f2d6d7886e1afb26e570618c47">precision</a> : 6;</div>
<div class="line"><a name="l00677"></a><span class="lineno">  677</span>&#160;  <span class="keywordflow">switch</span> (specs.<a class="code" href="structfmt_1_1v5_1_1core__format__specs.html#ae8225c1b5ab54383472fed40c9ccf4b6">type</a>) {</div>
<div class="line"><a name="l00678"></a><span class="lineno">  678</span>&#160;  <span class="keywordflow">case</span> <span class="charliteral">&#39;G&#39;</span>:</div>
<div class="line"><a name="l00679"></a><span class="lineno">  679</span>&#160;    params.upper = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00680"></a><span class="lineno">  680</span>&#160;    <a class="code" href="format-inl_8h.html#a35d4bc2bf717ac7731de7713c54175bb">FMT_FALLTHROUGH</a></div>
<div class="line"><a name="l00681"></a><span class="lineno">  681</span>&#160;  <span class="keywordflow">case</span> <span class="charliteral">&#39;\0&#39;</span>: <span class="keywordflow">case</span> <span class="charliteral">&#39;g&#39;</span>:</div>
<div class="line"><a name="l00682"></a><span class="lineno">  682</span>&#160;    params.trailing_zeros = (specs.<a class="code" href="structfmt_1_1v5_1_1core__format__specs.html#a08766778b893b5a8057b9580db36da9c">flags</a> &amp; <a class="code" href="namespacefmt_1_1v5.html#a2afc98455558e211af15ed1ad8c12bfaa1d9e9ff365a9e37fdcec9b729b9ab046">HASH_FLAG</a>) != 0;</div>
<div class="line"><a name="l00683"></a><span class="lineno">  683</span>&#160;    <span class="keywordflow">if</span> (-4 &lt;= exp &amp;&amp; exp &lt; num_digits + 1) {</div>
<div class="line"><a name="l00684"></a><span class="lineno">  684</span>&#160;      params.fixed = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00685"></a><span class="lineno">  685</span>&#160;      <span class="keywordflow">if</span> (!specs.<a class="code" href="structfmt_1_1v5_1_1core__format__specs.html#ae8225c1b5ab54383472fed40c9ccf4b6">type</a> &amp;&amp; params.trailing_zeros &amp;&amp; exp &gt;= 0)</div>
<div class="line"><a name="l00686"></a><span class="lineno">  686</span>&#160;        num_digits = exp + 1;</div>
<div class="line"><a name="l00687"></a><span class="lineno">  687</span>&#160;    }</div>
<div class="line"><a name="l00688"></a><span class="lineno">  688</span>&#160;    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00689"></a><span class="lineno">  689</span>&#160;  <span class="keywordflow">case</span> <span class="charliteral">&#39;F&#39;</span>:</div>
<div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160;    params.upper = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00691"></a><span class="lineno">  691</span>&#160;    <a class="code" href="format-inl_8h.html#a35d4bc2bf717ac7731de7713c54175bb">FMT_FALLTHROUGH</a></div>
<div class="line"><a name="l00692"></a><span class="lineno">  692</span>&#160;  <span class="keywordflow">case</span> <span class="charliteral">&#39;f&#39;</span>: {</div>
<div class="line"><a name="l00693"></a><span class="lineno">  693</span>&#160;    params.fixed = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00694"></a><span class="lineno">  694</span>&#160;    params.trailing_zeros = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00695"></a><span class="lineno">  695</span>&#160;    <span class="keywordtype">int</span> adjusted_min_digits = num_digits + exp;</div>
<div class="line"><a name="l00696"></a><span class="lineno">  696</span>&#160;    <span class="keywordflow">if</span> (adjusted_min_digits &gt; 0)</div>
<div class="line"><a name="l00697"></a><span class="lineno">  697</span>&#160;      num_digits = adjusted_min_digits;</div>
<div class="line"><a name="l00698"></a><span class="lineno">  698</span>&#160;    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00699"></a><span class="lineno">  699</span>&#160;  }</div>
<div class="line"><a name="l00700"></a><span class="lineno">  700</span>&#160;  <span class="keywordflow">case</span> <span class="charliteral">&#39;E&#39;</span>:</div>
<div class="line"><a name="l00701"></a><span class="lineno">  701</span>&#160;    params.upper = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00702"></a><span class="lineno">  702</span>&#160;    <a class="code" href="format-inl_8h.html#a35d4bc2bf717ac7731de7713c54175bb">FMT_FALLTHROUGH</a></div>
<div class="line"><a name="l00703"></a><span class="lineno">  703</span>&#160;  <span class="keywordflow">case</span> <span class="charliteral">&#39;e&#39;</span>:</div>
<div class="line"><a name="l00704"></a><span class="lineno">  704</span>&#160;    ++num_digits;</div>
<div class="line"><a name="l00705"></a><span class="lineno">  705</span>&#160;    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00706"></a><span class="lineno">  706</span>&#160;  }</div>
<div class="line"><a name="l00707"></a><span class="lineno">  707</span>&#160;  params.num_digits = num_digits;</div>
<div class="line"><a name="l00708"></a><span class="lineno">  708</span>&#160;  <a class="code" href="structfmt_1_1v5_1_1internal_1_1char__counter.html">char_counter</a> counter{num_digits};</div>
<div class="line"><a name="l00709"></a><span class="lineno">  709</span>&#160;  <a class="code" href="namespacefmt_1_1v5_1_1internal.html#a171b42c0035379bd3c3983f573ee09db">grisu2_prettify</a>(params, params.num_digits, exp - num_digits, counter);</div>
<div class="line"><a name="l00710"></a><span class="lineno">  710</span>&#160;  buf.<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#af20fa1cd5e5bd230ab1d4e89c6aead38">resize</a>(<a class="code" href="namespacefmt_1_1v5_1_1internal.html#abef3b695050c4132b4fc4d7f256b9580">to_unsigned</a>(counter.size));</div>
<div class="line"><a name="l00711"></a><span class="lineno">  711</span>&#160;  <span class="keywordflow">return</span> params;</div>
<div class="line"><a name="l00712"></a><span class="lineno">  712</span>&#160;}</div>
<div class="line"><a name="l00713"></a><span class="lineno">  713</span>&#160; </div>
<div class="line"><a name="l00714"></a><span class="lineno">  714</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Double&gt;</div>
<div class="line"><a name="l00715"></a><span class="lineno">  715</span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> <span class="keyword">typename</span> std::enable_if&lt;<span class="keyword">sizeof</span>(Double) == <span class="keyword">sizeof</span>(uint64_t), <span class="keywordtype">bool</span>&gt;<a class="code" href="namespacefmt_1_1v5_1_1internal.html#af8b98afef956b03a99bc61d088705f13">::type</a></div>
<div class="line"><a name="l00716"></a><span class="lineno"><a class="line" href="namespacefmt_1_1v5_1_1internal.html#a270efa9d1d49796e04a96f764a68c8b5">  716</a></span>&#160;    <a class="code" href="namespacefmt_1_1v5_1_1internal.html#a270efa9d1d49796e04a96f764a68c8b5">grisu2_format</a>(Double <a class="code" href="classfmt_1_1v5_1_1internal_1_1value.html">value</a>, <a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html">buffer</a> &amp;buf, <a class="code" href="structfmt_1_1v5_1_1core__format__specs.html">core_format_specs</a> specs) {</div>
<div class="line"><a name="l00717"></a><span class="lineno">  717</span>&#160;  <a class="code" href="core_8h.html#a03e7ee720f43adc7d83c652a6a5dd5f8">FMT_ASSERT</a>(<a class="code" href="classfmt_1_1v5_1_1internal_1_1value.html">value</a> &gt;= 0, <span class="stringliteral">&quot;value is negative&quot;</span>);</div>
<div class="line"><a name="l00718"></a><span class="lineno">  718</span>&#160;  <span class="keywordflow">if</span> (<a class="code" href="classfmt_1_1v5_1_1internal_1_1value.html">value</a> == 0) {</div>
<div class="line"><a name="l00719"></a><span class="lineno">  719</span>&#160;    <a class="code" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html">gen_digits_params</a> params = <a class="code" href="namespacefmt_1_1v5_1_1internal.html#a63add7333da71960d33855aa1489c2ee">process_specs</a>(specs, 1, buf);</div>
<div class="line"><a name="l00720"></a><span class="lineno">  720</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">size_t</span> size = 1;</div>
<div class="line"><a name="l00721"></a><span class="lineno">  721</span>&#160;    buf[0] = <span class="charliteral">&#39;0&#39;</span>;</div>
<div class="line"><a name="l00722"></a><span class="lineno">  722</span>&#160;    <a class="code" href="namespacefmt_1_1v5_1_1internal.html#a171b42c0035379bd3c3983f573ee09db">grisu2_prettify</a>(params, size, 0, <a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html">prettify_handler</a>(buf, size));</div>
<div class="line"><a name="l00723"></a><span class="lineno">  723</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00724"></a><span class="lineno">  724</span>&#160;  }</div>
<div class="line"><a name="l00725"></a><span class="lineno">  725</span>&#160; </div>
<div class="line"><a name="l00726"></a><span class="lineno">  726</span>&#160;  <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html">fp</a> fp_value(<a class="code" href="classfmt_1_1v5_1_1internal_1_1value.html">value</a>);</div>
<div class="line"><a name="l00727"></a><span class="lineno">  727</span>&#160;  <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html">fp</a> lower, upper;  <span class="comment">// w^- and w^+ in the Grisu paper.</span></div>
<div class="line"><a name="l00728"></a><span class="lineno">  728</span>&#160;  fp_value.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ab9070b4fc350e45c0d3c9685e8240fc2">compute_boundaries</a>(lower, upper);</div>
<div class="line"><a name="l00729"></a><span class="lineno">  729</span>&#160; </div>
<div class="line"><a name="l00730"></a><span class="lineno">  730</span>&#160;  <span class="comment">// Find a cached power of 10 close to 1 / upper and use it to scale upper.</span></div>
<div class="line"><a name="l00731"></a><span class="lineno">  731</span>&#160;  <span class="keyword">const</span> <span class="keywordtype">int</span> min_exp = -60;  <span class="comment">// alpha in Grisu.</span></div>
<div class="line"><a name="l00732"></a><span class="lineno">  732</span>&#160;  <span class="keywordtype">int</span> cached_exp = 0;  <span class="comment">// K in Grisu.</span></div>
<div class="line"><a name="l00733"></a><span class="lineno">  733</span>&#160;  <span class="keyword">auto</span> cached_pow = <a class="code" href="namespacefmt_1_1v5_1_1internal.html#a6a266d9a7b8249c93b139f1fa499a45d">get_cached_power</a>(  <span class="comment">// \tilde{c}_{-k} in Grisu.</span></div>
<div class="line"><a name="l00734"></a><span class="lineno">  734</span>&#160;      min_exp - (upper.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a> + <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad0175b9acfb79c562984ed002fe09c53">fp::significand_size</a>), cached_exp);</div>
<div class="line"><a name="l00735"></a><span class="lineno">  735</span>&#160;  cached_exp = -cached_exp;</div>
<div class="line"><a name="l00736"></a><span class="lineno">  736</span>&#160;  upper = upper * cached_pow;  <span class="comment">// \tilde{M}^+ in Grisu.</span></div>
<div class="line"><a name="l00737"></a><span class="lineno">  737</span>&#160;  --upper.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a>;  <span class="comment">// \tilde{M}^+ - 1 ulp -&gt; M^+_{\downarrow}.</span></div>
<div class="line"><a name="l00738"></a><span class="lineno">  738</span>&#160;  <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html">fp</a> one(1ull &lt;&lt; -upper.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a>, upper.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a>);</div>
<div class="line"><a name="l00739"></a><span class="lineno">  739</span>&#160;  <span class="comment">// hi (p1 in Grisu) contains the most significant digits of scaled_upper.</span></div>
<div class="line"><a name="l00740"></a><span class="lineno">  740</span>&#160;  <span class="comment">// hi = floor(upper / one).</span></div>
<div class="line"><a name="l00741"></a><span class="lineno">  741</span>&#160;  uint32_t hi = static_cast&lt;uint32_t&gt;(upper.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a> &gt;&gt; -one.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">e</a>);</div>
<div class="line"><a name="l00742"></a><span class="lineno">  742</span>&#160;  <span class="keywordtype">int</span> exp = <a class="code" href="namespacefmt_1_1v5_1_1internal.html#a1b8c0cdffe57c5fe9dc629babe471316">count_digits</a>(hi);  <span class="comment">// kappa in Grisu.</span></div>
<div class="line"><a name="l00743"></a><span class="lineno">  743</span>&#160;  <a class="code" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html">gen_digits_params</a> params = <a class="code" href="namespacefmt_1_1v5_1_1internal.html#a63add7333da71960d33855aa1489c2ee">process_specs</a>(specs, cached_exp + exp, buf);</div>
<div class="line"><a name="l00744"></a><span class="lineno">  744</span>&#160;  fp_value.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ab59ad7dfcd4ed603592d93cf4b7aaa42">normalize</a>();</div>
<div class="line"><a name="l00745"></a><span class="lineno">  745</span>&#160;  <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html">fp</a> scaled_value = fp_value * cached_pow;</div>
<div class="line"><a name="l00746"></a><span class="lineno">  746</span>&#160;  lower = lower * cached_pow;  <span class="comment">// \tilde{M}^- in Grisu.</span></div>
<div class="line"><a name="l00747"></a><span class="lineno">  747</span>&#160;  ++lower.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a>;  <span class="comment">// \tilde{M}^- + 1 ulp -&gt; M^-_{\uparrow}.</span></div>
<div class="line"><a name="l00748"></a><span class="lineno">  748</span>&#160;  uint64_t delta = upper.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a> - lower.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a>;</div>
<div class="line"><a name="l00749"></a><span class="lineno">  749</span>&#160;  <a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html">fp</a> diff = upper - scaled_value; <span class="comment">// wp_w in Grisu.</span></div>
<div class="line"><a name="l00750"></a><span class="lineno">  750</span>&#160;  <span class="comment">// lo (p2 in Grisu) contains the least significants digits of scaled_upper.</span></div>
<div class="line"><a name="l00751"></a><span class="lineno">  751</span>&#160;  <span class="comment">// lo = supper % one.</span></div>
<div class="line"><a name="l00752"></a><span class="lineno">  752</span>&#160;  uint64_t lo = upper.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a> &amp; (one.<a class="code" href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">f</a> - 1);</div>
<div class="line"><a name="l00753"></a><span class="lineno">  753</span>&#160;  <span class="keywordtype">int</span> size = 0;</div>
<div class="line"><a name="l00754"></a><span class="lineno">  754</span>&#160;  <span class="keywordflow">if</span> (!<a class="code" href="namespacefmt_1_1v5_1_1internal.html#aa8305888233bc94e346b9c162f6a8f18">grisu2_gen_digits</a>(buf.<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#a384f1304da6ce18c4713368327354479">data</a>(), size, hi, lo, exp, delta, one, diff,</div>
<div class="line"><a name="l00755"></a><span class="lineno">  755</span>&#160;                         params.<a class="code" href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html#ae5d119f024f6844f366eacbb80dc905b">num_digits</a>)) {</div>
<div class="line"><a name="l00756"></a><span class="lineno">  756</span>&#160;    buf.<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#ae92aa3486601bb4ba757be96b3c6bee3">clear</a>();</div>
<div class="line"><a name="l00757"></a><span class="lineno">  757</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00758"></a><span class="lineno">  758</span>&#160;  }</div>
<div class="line"><a name="l00759"></a><span class="lineno">  759</span>&#160;  <a class="code" href="namespacefmt_1_1v5_1_1internal.html#a171b42c0035379bd3c3983f573ee09db">grisu2_prettify</a>(params, size, cached_exp + exp, <a class="code" href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html">prettify_handler</a>(buf, size));</div>
<div class="line"><a name="l00760"></a><span class="lineno">  760</span>&#160;  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00761"></a><span class="lineno">  761</span>&#160;}</div>
<div class="line"><a name="l00762"></a><span class="lineno">  762</span>&#160; </div>
<div class="line"><a name="l00763"></a><span class="lineno">  763</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Double&gt;</div>
<div class="line"><a name="l00764"></a><span class="lineno"><a class="line" href="namespacefmt_1_1v5_1_1internal.html#a37f320718a8fbb4cf326d075f6332e93">  764</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespacefmt_1_1v5_1_1internal.html#a37f320718a8fbb4cf326d075f6332e93">sprintf_format</a>(Double <a class="code" href="classfmt_1_1v5_1_1internal_1_1value.html">value</a>, <a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html">internal::buffer</a> &amp;buf,</div>
<div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160;                    <a class="code" href="structfmt_1_1v5_1_1core__format__specs.html">core_format_specs</a> spec) {</div>
<div class="line"><a name="l00766"></a><span class="lineno">  766</span>&#160;  <span class="comment">// Buffer capacity must be non-zero, otherwise MSVC&#39;s vsnprintf_s will fail.</span></div>
<div class="line"><a name="l00767"></a><span class="lineno">  767</span>&#160;  <a class="code" href="core_8h.html#a03e7ee720f43adc7d83c652a6a5dd5f8">FMT_ASSERT</a>(buf.<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#a7bf5da24d9aec9ed9b5e42b912a38a7b">capacity</a>() != 0, <span class="stringliteral">&quot;empty buffer&quot;</span>);</div>
<div class="line"><a name="l00768"></a><span class="lineno">  768</span>&#160; </div>
<div class="line"><a name="l00769"></a><span class="lineno">  769</span>&#160;  <span class="comment">// Build format string.</span></div>
<div class="line"><a name="l00770"></a><span class="lineno">  770</span>&#160;  <span class="keyword">enum</span> { MAX_FORMAT_SIZE = 10}; <span class="comment">// longest format: %#-*.*Lg</span></div>
<div class="line"><a name="l00771"></a><span class="lineno">  771</span>&#160;  <span class="keywordtype">char</span> <a class="code" href="namespacefmt_1_1v5.html#a8accad256e8cb70d1398a568742a60f0">format</a>[MAX_FORMAT_SIZE];</div>
<div class="line"><a name="l00772"></a><span class="lineno">  772</span>&#160;  <span class="keywordtype">char</span> *format_ptr = <a class="code" href="namespacefmt_1_1v5.html#a8accad256e8cb70d1398a568742a60f0">format</a>;</div>
<div class="line"><a name="l00773"></a><span class="lineno">  773</span>&#160;  *format_ptr++ = <span class="charliteral">&#39;%&#39;</span>;</div>
<div class="line"><a name="l00774"></a><span class="lineno">  774</span>&#160;  <span class="keywordflow">if</span> (spec.<a class="code" href="structfmt_1_1v5_1_1core__format__specs.html#a721c8bd2bf91d00f04dc6ef6fcc0189a">has</a>(<a class="code" href="namespacefmt_1_1v5.html#a2afc98455558e211af15ed1ad8c12bfaa1d9e9ff365a9e37fdcec9b729b9ab046">HASH_FLAG</a>))</div>
<div class="line"><a name="l00775"></a><span class="lineno">  775</span>&#160;    *format_ptr++ = <span class="charliteral">&#39;#&#39;</span>;</div>
<div class="line"><a name="l00776"></a><span class="lineno">  776</span>&#160;  <span class="keywordflow">if</span> (spec.<a class="code" href="structfmt_1_1v5_1_1core__format__specs.html#a445855f2d6d7886e1afb26e570618c47">precision</a> &gt;= 0) {</div>
<div class="line"><a name="l00777"></a><span class="lineno">  777</span>&#160;    *format_ptr++ = <span class="charliteral">&#39;.&#39;</span>;</div>
<div class="line"><a name="l00778"></a><span class="lineno">  778</span>&#160;    *format_ptr++ = <span class="charliteral">&#39;*&#39;</span>;</div>
<div class="line"><a name="l00779"></a><span class="lineno">  779</span>&#160;  }</div>
<div class="line"><a name="l00780"></a><span class="lineno">  780</span>&#160;  <span class="keywordflow">if</span> (std::is_same&lt;Double, long double&gt;::value)</div>
<div class="line"><a name="l00781"></a><span class="lineno">  781</span>&#160;    *format_ptr++ = <span class="charliteral">&#39;L&#39;</span>;</div>
<div class="line"><a name="l00782"></a><span class="lineno">  782</span>&#160;  *format_ptr++ = spec.<a class="code" href="structfmt_1_1v5_1_1core__format__specs.html#ae8225c1b5ab54383472fed40c9ccf4b6">type</a>;</div>
<div class="line"><a name="l00783"></a><span class="lineno">  783</span>&#160;  *format_ptr = <span class="charliteral">&#39;\0&#39;</span>;</div>
<div class="line"><a name="l00784"></a><span class="lineno">  784</span>&#160; </div>
<div class="line"><a name="l00785"></a><span class="lineno">  785</span>&#160;  <span class="comment">// Format using snprintf.</span></div>
<div class="line"><a name="l00786"></a><span class="lineno">  786</span>&#160;  <span class="keywordtype">char</span> *start = <a class="code" href="core_8h.html#af7f827e50dd7667484c279ac1d38f30b">FMT_NULL</a>;</div>
<div class="line"><a name="l00787"></a><span class="lineno">  787</span>&#160;  <span class="keywordflow">for</span> (;;) {</div>
<div class="line"><a name="l00788"></a><span class="lineno">  788</span>&#160;    std::size_t buffer_size = buf.<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#a7bf5da24d9aec9ed9b5e42b912a38a7b">capacity</a>();</div>
<div class="line"><a name="l00789"></a><span class="lineno">  789</span>&#160;    start = &amp;buf[0];</div>
<div class="line"><a name="l00790"></a><span class="lineno">  790</span>&#160;    <span class="keywordtype">int</span> result = <a class="code" href="structfmt_1_1v5_1_1internal_1_1char__traits.html">internal::char_traits&lt;char&gt;::format_float</a>(</div>
<div class="line"><a name="l00791"></a><span class="lineno">  791</span>&#160;        start, buffer_size, <a class="code" href="namespacefmt_1_1v5.html#a8accad256e8cb70d1398a568742a60f0">format</a>, spec.<a class="code" href="structfmt_1_1v5_1_1core__format__specs.html#a445855f2d6d7886e1afb26e570618c47">precision</a>, <a class="code" href="classfmt_1_1v5_1_1internal_1_1value.html">value</a>);</div>
<div class="line"><a name="l00792"></a><span class="lineno">  792</span>&#160;    <span class="keywordflow">if</span> (result &gt;= 0) {</div>
<div class="line"><a name="l00793"></a><span class="lineno">  793</span>&#160;      <span class="keywordtype">unsigned</span> n = <a class="code" href="namespacefmt_1_1v5_1_1internal.html#abef3b695050c4132b4fc4d7f256b9580">internal::to_unsigned</a>(result);</div>
<div class="line"><a name="l00794"></a><span class="lineno">  794</span>&#160;      <span class="keywordflow">if</span> (n &lt; buf.<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#a7bf5da24d9aec9ed9b5e42b912a38a7b">capacity</a>()) {</div>
<div class="line"><a name="l00795"></a><span class="lineno">  795</span>&#160;        buf.<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#af20fa1cd5e5bd230ab1d4e89c6aead38">resize</a>(n);</div>
<div class="line"><a name="l00796"></a><span class="lineno">  796</span>&#160;        <span class="keywordflow">break</span>;  <span class="comment">// The buffer is large enough - continue with formatting.</span></div>
<div class="line"><a name="l00797"></a><span class="lineno">  797</span>&#160;      }</div>
<div class="line"><a name="l00798"></a><span class="lineno">  798</span>&#160;      buf.<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#ab306d6d55956332b1083e967393a59f1">reserve</a>(n + 1);</div>
<div class="line"><a name="l00799"></a><span class="lineno">  799</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00800"></a><span class="lineno">  800</span>&#160;      <span class="comment">// If result is negative we ask to increase the capacity by at least 1,</span></div>
<div class="line"><a name="l00801"></a><span class="lineno">  801</span>&#160;      <span class="comment">// but as std::vector, the buffer grows exponentially.</span></div>
<div class="line"><a name="l00802"></a><span class="lineno">  802</span>&#160;      buf.<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#ab306d6d55956332b1083e967393a59f1">reserve</a>(buf.<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#a7bf5da24d9aec9ed9b5e42b912a38a7b">capacity</a>() + 1);</div>
<div class="line"><a name="l00803"></a><span class="lineno">  803</span>&#160;    }</div>
<div class="line"><a name="l00804"></a><span class="lineno">  804</span>&#160;  }</div>
<div class="line"><a name="l00805"></a><span class="lineno">  805</span>&#160;}</div>
<div class="line"><a name="l00806"></a><span class="lineno">  806</span>&#160;}  <span class="comment">// namespace internal</span></div>
<div class="line"><a name="l00807"></a><span class="lineno">  807</span>&#160; </div>
<div class="line"><a name="l00808"></a><span class="lineno">  808</span>&#160;<span class="preprocessor">#if FMT_USE_WINDOWS_H</span></div>
<div class="line"><a name="l00809"></a><span class="lineno">  809</span>&#160; </div>
<div class="line"><a name="l00810"></a><span class="lineno">  810</span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> internal::utf8_to_utf16::utf8_to_utf16(<a class="code" href="classfmt_1_1v5_1_1basic__string__view.html">string_view</a> s) {</div>
<div class="line"><a name="l00811"></a><span class="lineno">  811</span>&#160;  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> ERROR_MSG[] = <span class="stringliteral">&quot;cannot convert string from UTF-8 to UTF-16&quot;</span>;</div>
<div class="line"><a name="l00812"></a><span class="lineno">  812</span>&#160;  <span class="keywordflow">if</span> (s.<a class="code" href="classfmt_1_1v5_1_1basic__string__view.html#abd82d74b110d5d4f52e0282e4d11fc99">size</a>() &gt; INT_MAX)</div>
<div class="line"><a name="l00813"></a><span class="lineno">  813</span>&#160;    <a class="code" href="format_8h.html#ad9e2ed6d3b432a04c9622c34a2495304">FMT_THROW</a>(windows_error(ERROR_INVALID_PARAMETER, ERROR_MSG));</div>
<div class="line"><a name="l00814"></a><span class="lineno">  814</span>&#160;  <span class="keywordtype">int</span> s_size = static_cast&lt;int&gt;(s.<a class="code" href="classfmt_1_1v5_1_1basic__string__view.html#abd82d74b110d5d4f52e0282e4d11fc99">size</a>());</div>
<div class="line"><a name="l00815"></a><span class="lineno">  815</span>&#160;  <span class="keywordflow">if</span> (s_size == 0) {</div>
<div class="line"><a name="l00816"></a><span class="lineno">  816</span>&#160;    <span class="comment">// MultiByteToWideChar does not support zero length, handle separately.</span></div>
<div class="line"><a name="l00817"></a><span class="lineno">  817</span>&#160;    buffer_.resize(1);</div>
<div class="line"><a name="l00818"></a><span class="lineno">  818</span>&#160;    buffer_[0] = 0;</div>
<div class="line"><a name="l00819"></a><span class="lineno">  819</span>&#160;    <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00820"></a><span class="lineno">  820</span>&#160;  }</div>
<div class="line"><a name="l00821"></a><span class="lineno">  821</span>&#160; </div>
<div class="line"><a name="l00822"></a><span class="lineno">  822</span>&#160;  <span class="keywordtype">int</span> length = MultiByteToWideChar(</div>
<div class="line"><a name="l00823"></a><span class="lineno">  823</span>&#160;      CP_UTF8, MB_ERR_INVALID_CHARS, s.<a class="code" href="classfmt_1_1v5_1_1basic__string__view.html#a517e9e8fc58c52c7816fa647d5e69f9f">data</a>(), s_size, <a class="code" href="core_8h.html#af7f827e50dd7667484c279ac1d38f30b">FMT_NULL</a>, 0);</div>
<div class="line"><a name="l00824"></a><span class="lineno">  824</span>&#160;  <span class="keywordflow">if</span> (length == 0)</div>
<div class="line"><a name="l00825"></a><span class="lineno">  825</span>&#160;    <a class="code" href="format_8h.html#ad9e2ed6d3b432a04c9622c34a2495304">FMT_THROW</a>(windows_error(GetLastError(), ERROR_MSG));</div>
<div class="line"><a name="l00826"></a><span class="lineno">  826</span>&#160;  buffer_.resize(length + 1);</div>
<div class="line"><a name="l00827"></a><span class="lineno">  827</span>&#160;  length = MultiByteToWideChar(</div>
<div class="line"><a name="l00828"></a><span class="lineno">  828</span>&#160;    CP_UTF8, MB_ERR_INVALID_CHARS, s.<a class="code" href="classfmt_1_1v5_1_1basic__string__view.html#a517e9e8fc58c52c7816fa647d5e69f9f">data</a>(), s_size, &amp;buffer_[0], length);</div>
<div class="line"><a name="l00829"></a><span class="lineno">  829</span>&#160;  <span class="keywordflow">if</span> (length == 0)</div>
<div class="line"><a name="l00830"></a><span class="lineno">  830</span>&#160;    <a class="code" href="format_8h.html#ad9e2ed6d3b432a04c9622c34a2495304">FMT_THROW</a>(windows_error(GetLastError(), ERROR_MSG));</div>
<div class="line"><a name="l00831"></a><span class="lineno">  831</span>&#160;  buffer_[length] = 0;</div>
<div class="line"><a name="l00832"></a><span class="lineno">  832</span>&#160;}</div>
<div class="line"><a name="l00833"></a><span class="lineno">  833</span>&#160; </div>
<div class="line"><a name="l00834"></a><span class="lineno">  834</span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> internal::utf16_to_utf8::utf16_to_utf8(<a class="code" href="namespacefmt_1_1v5.html#a37de00647fc1e0345f485313cdd522f7">wstring_view</a> s) {</div>
<div class="line"><a name="l00835"></a><span class="lineno">  835</span>&#160;  <span class="keywordflow">if</span> (<span class="keywordtype">int</span> error_code = convert(s)) {</div>
<div class="line"><a name="l00836"></a><span class="lineno">  836</span>&#160;    <a class="code" href="format_8h.html#ad9e2ed6d3b432a04c9622c34a2495304">FMT_THROW</a>(windows_error(error_code,</div>
<div class="line"><a name="l00837"></a><span class="lineno">  837</span>&#160;        <span class="stringliteral">&quot;cannot convert string from UTF-16 to UTF-8&quot;</span>));</div>
<div class="line"><a name="l00838"></a><span class="lineno">  838</span>&#160;  }</div>
<div class="line"><a name="l00839"></a><span class="lineno">  839</span>&#160;}</div>
<div class="line"><a name="l00840"></a><span class="lineno">  840</span>&#160; </div>
<div class="line"><a name="l00841"></a><span class="lineno">  841</span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> <span class="keywordtype">int</span> internal::utf16_to_utf8::convert(<a class="code" href="namespacefmt_1_1v5.html#a37de00647fc1e0345f485313cdd522f7">wstring_view</a> s) {</div>
<div class="line"><a name="l00842"></a><span class="lineno">  842</span>&#160;  <span class="keywordflow">if</span> (s.size() &gt; INT_MAX)</div>
<div class="line"><a name="l00843"></a><span class="lineno">  843</span>&#160;    <span class="keywordflow">return</span> ERROR_INVALID_PARAMETER;</div>
<div class="line"><a name="l00844"></a><span class="lineno">  844</span>&#160;  <span class="keywordtype">int</span> s_size = static_cast&lt;int&gt;(s.size());</div>
<div class="line"><a name="l00845"></a><span class="lineno">  845</span>&#160;  <span class="keywordflow">if</span> (s_size == 0) {</div>
<div class="line"><a name="l00846"></a><span class="lineno">  846</span>&#160;    <span class="comment">// WideCharToMultiByte does not support zero length, handle separately.</span></div>
<div class="line"><a name="l00847"></a><span class="lineno">  847</span>&#160;    buffer_.resize(1);</div>
<div class="line"><a name="l00848"></a><span class="lineno">  848</span>&#160;    buffer_[0] = 0;</div>
<div class="line"><a name="l00849"></a><span class="lineno">  849</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00850"></a><span class="lineno">  850</span>&#160;  }</div>
<div class="line"><a name="l00851"></a><span class="lineno">  851</span>&#160; </div>
<div class="line"><a name="l00852"></a><span class="lineno">  852</span>&#160;  <span class="keywordtype">int</span> length = WideCharToMultiByte(</div>
<div class="line"><a name="l00853"></a><span class="lineno">  853</span>&#160;        CP_UTF8, 0, s.data(), s_size, <a class="code" href="core_8h.html#af7f827e50dd7667484c279ac1d38f30b">FMT_NULL</a>, 0, <a class="code" href="core_8h.html#af7f827e50dd7667484c279ac1d38f30b">FMT_NULL</a>, <a class="code" href="core_8h.html#af7f827e50dd7667484c279ac1d38f30b">FMT_NULL</a>);</div>
<div class="line"><a name="l00854"></a><span class="lineno">  854</span>&#160;  <span class="keywordflow">if</span> (length == 0)</div>
<div class="line"><a name="l00855"></a><span class="lineno">  855</span>&#160;    <span class="keywordflow">return</span> GetLastError();</div>
<div class="line"><a name="l00856"></a><span class="lineno">  856</span>&#160;  buffer_.resize(length + 1);</div>
<div class="line"><a name="l00857"></a><span class="lineno">  857</span>&#160;  length = WideCharToMultiByte(</div>
<div class="line"><a name="l00858"></a><span class="lineno">  858</span>&#160;    CP_UTF8, 0, s.data(), s_size, &amp;buffer_[0], length, <a class="code" href="core_8h.html#af7f827e50dd7667484c279ac1d38f30b">FMT_NULL</a>, <a class="code" href="core_8h.html#af7f827e50dd7667484c279ac1d38f30b">FMT_NULL</a>);</div>
<div class="line"><a name="l00859"></a><span class="lineno">  859</span>&#160;  <span class="keywordflow">if</span> (length == 0)</div>
<div class="line"><a name="l00860"></a><span class="lineno">  860</span>&#160;    <span class="keywordflow">return</span> GetLastError();</div>
<div class="line"><a name="l00861"></a><span class="lineno">  861</span>&#160;  buffer_[length] = 0;</div>
<div class="line"><a name="l00862"></a><span class="lineno">  862</span>&#160;  <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00863"></a><span class="lineno">  863</span>&#160;}</div>
<div class="line"><a name="l00864"></a><span class="lineno">  864</span>&#160; </div>
<div class="line"><a name="l00865"></a><span class="lineno">  865</span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> <span class="keywordtype">void</span> windows_error::init(</div>
<div class="line"><a name="l00866"></a><span class="lineno">  866</span>&#160;    <span class="keywordtype">int</span> err_code, <a class="code" href="namespacefmt_1_1v5.html#a3301ccbf6a0ab1b233242041a835a54a">string_view</a> format_str, format_args args) {</div>
<div class="line"><a name="l00867"></a><span class="lineno">  867</span>&#160;  error_code_ = err_code;</div>
<div class="line"><a name="l00868"></a><span class="lineno">  868</span>&#160;  <a class="code" href="namespacefmt_1_1v5.html#a87104ff0bbd588f55bbbadf592227d75">memory_buffer</a> <a class="code" href="namespacefmt_1_1v5_1_1internal.html#ae63557fe9ccf973c29dc6dd122fa4ae0">buffer</a>;</div>
<div class="line"><a name="l00869"></a><span class="lineno">  869</span>&#160;  internal::format_windows_error(<a class="code" href="namespacefmt_1_1v5_1_1internal.html#ae63557fe9ccf973c29dc6dd122fa4ae0">buffer</a>, err_code, <a class="code" href="namespacefmt_1_1v5.html#afbb941ac362fc08798ab3f9b1303f88f">vformat</a>(format_str, args));</div>
<div class="line"><a name="l00870"></a><span class="lineno">  870</span>&#160;  std::runtime_error &amp;base = *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00871"></a><span class="lineno">  871</span>&#160;  base = std::runtime_error(<a class="code" href="namespacefmt_1_1v5.html#af7906102d07e0d93b609aef6c05fc27a">to_string</a>(<a class="code" href="namespacefmt_1_1v5_1_1internal.html#ae63557fe9ccf973c29dc6dd122fa4ae0">buffer</a>));</div>
<div class="line"><a name="l00872"></a><span class="lineno">  872</span>&#160;}</div>
<div class="line"><a name="l00873"></a><span class="lineno">  873</span>&#160; </div>
<div class="line"><a name="l00874"></a><span class="lineno">  874</span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> <span class="keywordtype">void</span> internal::format_windows_error(</div>
<div class="line"><a name="l00875"></a><span class="lineno">  875</span>&#160;    <a class="code" href="namespacefmt_1_1v5_1_1internal.html#ae63557fe9ccf973c29dc6dd122fa4ae0">internal::buffer</a> &amp;out, <span class="keywordtype">int</span> error_code, <a class="code" href="namespacefmt_1_1v5.html#a3301ccbf6a0ab1b233242041a835a54a">string_view</a> message) <a class="code" href="core_8h.html#aef128913e8400683b1cbd1a3a2e11df3">FMT_NOEXCEPT</a> {</div>
<div class="line"><a name="l00876"></a><span class="lineno">  876</span>&#160;  <a class="code" href="format-inl_8h.html#a4aa79926398ee27fe7d6db8b0dd54edf">FMT_TRY</a> {</div>
<div class="line"><a name="l00877"></a><span class="lineno">  877</span>&#160;    <a class="code" href="namespacefmt_1_1v5.html#aee7e37f3db0fc1ce34674f6b82c1f407">wmemory_buffer</a> buf;</div>
<div class="line"><a name="l00878"></a><span class="lineno">  878</span>&#160;    buf.resize(<a class="code" href="namespacefmt_1_1v5.html#ae7eb8fc665a67b192dc6437bc62ca354a0af8f7e3ddd1a426ef65b42502b4d3a0">inline_buffer_size</a>);</div>
<div class="line"><a name="l00879"></a><span class="lineno">  879</span>&#160;    <span class="keywordflow">for</span> (;;) {</div>
<div class="line"><a name="l00880"></a><span class="lineno">  880</span>&#160;      <span class="keywordtype">wchar_t</span> *system_message = &amp;buf[0];</div>
<div class="line"><a name="l00881"></a><span class="lineno">  881</span>&#160;      <span class="keywordtype">int</span> result = FormatMessageW(</div>
<div class="line"><a name="l00882"></a><span class="lineno">  882</span>&#160;          FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,</div>
<div class="line"><a name="l00883"></a><span class="lineno">  883</span>&#160;          <a class="code" href="core_8h.html#af7f827e50dd7667484c279ac1d38f30b">FMT_NULL</a>, error_code, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),</div>
<div class="line"><a name="l00884"></a><span class="lineno">  884</span>&#160;          system_message, static_cast&lt;uint32_t&gt;(buf.size()), <a class="code" href="core_8h.html#af7f827e50dd7667484c279ac1d38f30b">FMT_NULL</a>);</div>
<div class="line"><a name="l00885"></a><span class="lineno">  885</span>&#160;      <span class="keywordflow">if</span> (result != 0) {</div>
<div class="line"><a name="l00886"></a><span class="lineno">  886</span>&#160;        utf16_to_utf8 utf8_message;</div>
<div class="line"><a name="l00887"></a><span class="lineno">  887</span>&#160;        <span class="keywordflow">if</span> (utf8_message.convert(system_message) == ERROR_SUCCESS) {</div>
<div class="line"><a name="l00888"></a><span class="lineno">  888</span>&#160;          <a class="code" href="namespacefmt_1_1v5.html#aa896aba6bd0796c1d93bd6f71556a9f5">writer</a> w(out);</div>
<div class="line"><a name="l00889"></a><span class="lineno">  889</span>&#160;          w.write(message);</div>
<div class="line"><a name="l00890"></a><span class="lineno">  890</span>&#160;          w.write(<span class="stringliteral">&quot;: &quot;</span>);</div>
<div class="line"><a name="l00891"></a><span class="lineno">  891</span>&#160;          w.write(utf8_message);</div>
<div class="line"><a name="l00892"></a><span class="lineno">  892</span>&#160;          <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00893"></a><span class="lineno">  893</span>&#160;        }</div>
<div class="line"><a name="l00894"></a><span class="lineno">  894</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00895"></a><span class="lineno">  895</span>&#160;      }</div>
<div class="line"><a name="l00896"></a><span class="lineno">  896</span>&#160;      <span class="keywordflow">if</span> (GetLastError() != ERROR_INSUFFICIENT_BUFFER)</div>
<div class="line"><a name="l00897"></a><span class="lineno">  897</span>&#160;        <span class="keywordflow">break</span>;  <span class="comment">// Can&#39;t get error message, report error code instead.</span></div>
<div class="line"><a name="l00898"></a><span class="lineno">  898</span>&#160;      buf.resize(buf.size() * 2);</div>
<div class="line"><a name="l00899"></a><span class="lineno">  899</span>&#160;    }</div>
<div class="line"><a name="l00900"></a><span class="lineno">  900</span>&#160;  } <a class="code" href="format-inl_8h.html#ab8efe0100a6d7cc74729f5bf7537799c">FMT_CATCH</a>(...) {}</div>
<div class="line"><a name="l00901"></a><span class="lineno">  901</span>&#160;  format_error_code(out, error_code, message);</div>
<div class="line"><a name="l00902"></a><span class="lineno">  902</span>&#160;}</div>
<div class="line"><a name="l00903"></a><span class="lineno">  903</span>&#160; </div>
<div class="line"><a name="l00904"></a><span class="lineno">  904</span>&#160;<span class="preprocessor">#endif  // FMT_USE_WINDOWS_H</span></div>
<div class="line"><a name="l00905"></a><span class="lineno">  905</span>&#160; </div>
<div class="line"><a name="l00906"></a><span class="lineno"><a class="line" href="namespacefmt_1_1v5.html#a7f211f565c9879fafad806b788dde60d">  906</a></span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> <span class="keywordtype">void</span> <a class="code" href="namespacefmt_1_1v5.html#a7f211f565c9879fafad806b788dde60d">format_system_error</a>(</div>
<div class="line"><a name="l00907"></a><span class="lineno">  907</span>&#160;    <a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html">internal::buffer</a> &amp;out, <span class="keywordtype">int</span> <a class="code" href="classfmt_1_1v5_1_1error__code.html">error_code</a>, <a class="code" href="classfmt_1_1v5_1_1basic__string__view.html">string_view</a> message) <a class="code" href="core_8h.html#aef128913e8400683b1cbd1a3a2e11df3">FMT_NOEXCEPT</a> {</div>
<div class="line"><a name="l00908"></a><span class="lineno">  908</span>&#160;  <a class="code" href="format-inl_8h.html#a4aa79926398ee27fe7d6db8b0dd54edf">FMT_TRY</a> {</div>
<div class="line"><a name="l00909"></a><span class="lineno">  909</span>&#160;    <a class="code" href="classfmt_1_1v5_1_1basic__memory__buffer.html">memory_buffer</a> buf;</div>
<div class="line"><a name="l00910"></a><span class="lineno">  910</span>&#160;    buf.<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#af20fa1cd5e5bd230ab1d4e89c6aead38">resize</a>(<a class="code" href="namespacefmt_1_1v5.html#ae7eb8fc665a67b192dc6437bc62ca354a0af8f7e3ddd1a426ef65b42502b4d3a0">inline_buffer_size</a>);</div>
<div class="line"><a name="l00911"></a><span class="lineno">  911</span>&#160;    <span class="keywordflow">for</span> (;;) {</div>
<div class="line"><a name="l00912"></a><span class="lineno">  912</span>&#160;      <span class="keywordtype">char</span> *system_message = &amp;buf[0];</div>
<div class="line"><a name="l00913"></a><span class="lineno">  913</span>&#160;      <span class="keywordtype">int</span> result = safe_strerror(<a class="code" href="classfmt_1_1v5_1_1error__code.html">error_code</a>, system_message, buf.<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#ac4761deba75a7238ae29243b159b9943">size</a>());</div>
<div class="line"><a name="l00914"></a><span class="lineno">  914</span>&#160;      <span class="keywordflow">if</span> (result == 0) {</div>
<div class="line"><a name="l00915"></a><span class="lineno">  915</span>&#160;        <a class="code" href="classfmt_1_1v5_1_1basic__writer.html">writer</a> w(out);</div>
<div class="line"><a name="l00916"></a><span class="lineno">  916</span>&#160;        w.<a class="code" href="classfmt_1_1v5_1_1basic__writer.html#a531918e4cf5995d2c14785b3eb1f9699">write</a>(message);</div>
<div class="line"><a name="l00917"></a><span class="lineno">  917</span>&#160;        w.<a class="code" href="classfmt_1_1v5_1_1basic__writer.html#a531918e4cf5995d2c14785b3eb1f9699">write</a>(<span class="stringliteral">&quot;: &quot;</span>);</div>
<div class="line"><a name="l00918"></a><span class="lineno">  918</span>&#160;        w.<a class="code" href="classfmt_1_1v5_1_1basic__writer.html#a531918e4cf5995d2c14785b3eb1f9699">write</a>(system_message);</div>
<div class="line"><a name="l00919"></a><span class="lineno">  919</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00920"></a><span class="lineno">  920</span>&#160;      }</div>
<div class="line"><a name="l00921"></a><span class="lineno">  921</span>&#160;      <span class="keywordflow">if</span> (result != ERANGE)</div>
<div class="line"><a name="l00922"></a><span class="lineno">  922</span>&#160;        <span class="keywordflow">break</span>;  <span class="comment">// Can&#39;t get error message, report error code instead.</span></div>
<div class="line"><a name="l00923"></a><span class="lineno">  923</span>&#160;      buf.<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#af20fa1cd5e5bd230ab1d4e89c6aead38">resize</a>(buf.<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#ac4761deba75a7238ae29243b159b9943">size</a>() * 2);</div>
<div class="line"><a name="l00924"></a><span class="lineno">  924</span>&#160;    }</div>
<div class="line"><a name="l00925"></a><span class="lineno">  925</span>&#160;  } <a class="code" href="format-inl_8h.html#ab8efe0100a6d7cc74729f5bf7537799c">FMT_CATCH</a>(...) {}</div>
<div class="line"><a name="l00926"></a><span class="lineno">  926</span>&#160;  format_error_code(out, <a class="code" href="classfmt_1_1v5_1_1error__code.html">error_code</a>, message);</div>
<div class="line"><a name="l00927"></a><span class="lineno">  927</span>&#160;}</div>
<div class="line"><a name="l00928"></a><span class="lineno">  928</span>&#160; </div>
<div class="line"><a name="l00929"></a><span class="lineno"><a class="line" href="structfmt_1_1v5_1_1internal_1_1error__handler.html#af917438f30466b0b8cd4de4f8b549ab9">  929</a></span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> <span class="keywordtype">void</span> <a class="code" href="structfmt_1_1v5_1_1internal_1_1error__handler.html#af917438f30466b0b8cd4de4f8b549ab9">internal::error_handler::on_error</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *message) {</div>
<div class="line"><a name="l00930"></a><span class="lineno">  930</span>&#160;  <a class="code" href="format_8h.html#ad9e2ed6d3b432a04c9622c34a2495304">FMT_THROW</a>(<a class="code" href="classfmt_1_1v5_1_1format__error.html">format_error</a>(message));</div>
<div class="line"><a name="l00931"></a><span class="lineno">  931</span>&#160;}</div>
<div class="line"><a name="l00932"></a><span class="lineno">  932</span>&#160; </div>
<div class="line"><a name="l00933"></a><span class="lineno"><a class="line" href="namespacefmt_1_1v5.html#aede03e1a36d834c65a48c9349a085fc8">  933</a></span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> <span class="keywordtype">void</span> <a class="code" href="namespacefmt_1_1v5.html#aede03e1a36d834c65a48c9349a085fc8">report_system_error</a>(</div>
<div class="line"><a name="l00934"></a><span class="lineno">  934</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classfmt_1_1v5_1_1error__code.html">error_code</a>, <a class="code" href="classfmt_1_1v5_1_1basic__string__view.html">fmt::string_view</a> message) <a class="code" href="core_8h.html#aef128913e8400683b1cbd1a3a2e11df3">FMT_NOEXCEPT</a> {</div>
<div class="line"><a name="l00935"></a><span class="lineno">  935</span>&#160;  report_error(<a class="code" href="namespacefmt_1_1v5.html#a7f211f565c9879fafad806b788dde60d">format_system_error</a>, <a class="code" href="classfmt_1_1v5_1_1error__code.html">error_code</a>, message);</div>
<div class="line"><a name="l00936"></a><span class="lineno">  936</span>&#160;}</div>
<div class="line"><a name="l00937"></a><span class="lineno">  937</span>&#160; </div>
<div class="line"><a name="l00938"></a><span class="lineno">  938</span>&#160;<span class="preprocessor">#if FMT_USE_WINDOWS_H</span></div>
<div class="line"><a name="l00939"></a><span class="lineno">  939</span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> <span class="keywordtype">void</span> report_windows_error(</div>
<div class="line"><a name="l00940"></a><span class="lineno">  940</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classfmt_1_1v5_1_1error__code.html">error_code</a>, <a class="code" href="classfmt_1_1v5_1_1basic__string__view.html">fmt::string_view</a> message) <a class="code" href="core_8h.html#aef128913e8400683b1cbd1a3a2e11df3">FMT_NOEXCEPT</a> {</div>
<div class="line"><a name="l00941"></a><span class="lineno">  941</span>&#160;  report_error(internal::format_windows_error, <a class="code" href="classfmt_1_1v5_1_1error__code.html">error_code</a>, message);</div>
<div class="line"><a name="l00942"></a><span class="lineno">  942</span>&#160;}</div>
<div class="line"><a name="l00943"></a><span class="lineno">  943</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00944"></a><span class="lineno">  944</span>&#160; </div>
<div class="line"><a name="l00945"></a><span class="lineno"><a class="line" href="namespacefmt_1_1v5.html#a1a9971c629baa5e058f4a13dfa6e7f4b">  945</a></span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> <span class="keywordtype">void</span> <a class="code" href="namespacefmt_1_1v5.html#a4df07cd85241561a9b8ce9a7351b1606">vprint</a>(std::FILE *f, <a class="code" href="classfmt_1_1v5_1_1basic__string__view.html">string_view</a> format_str, <a class="code" href="structfmt_1_1v5_1_1format__args.html">format_args</a> args) {</div>
<div class="line"><a name="l00946"></a><span class="lineno">  946</span>&#160;  <a class="code" href="classfmt_1_1v5_1_1basic__memory__buffer.html">memory_buffer</a> <a class="code" href="namespacefmt_1_1v5_1_1internal.html#ae63557fe9ccf973c29dc6dd122fa4ae0">buffer</a>;</div>
<div class="line"><a name="l00947"></a><span class="lineno">  947</span>&#160;  <a class="code" href="namespacefmt_1_1v5_1_1internal.html#ac0cedf42ad81436f35151f2173458d61">internal::vformat_to</a>(<a class="code" href="namespacefmt_1_1v5_1_1internal.html#ae63557fe9ccf973c29dc6dd122fa4ae0">buffer</a>, format_str,</div>
<div class="line"><a name="l00948"></a><span class="lineno">  948</span>&#160;                       <a class="code" href="classfmt_1_1v5_1_1basic__format__args.html">basic_format_args</a>&lt;<a class="code" href="classfmt_1_1v5_1_1basic__format__context.html">buffer_context&lt;char&gt;::type</a>&gt;(args));</div>
<div class="line"><a name="l00949"></a><span class="lineno">  949</span>&#160;  std::fwrite(<a class="code" href="namespacefmt_1_1v5_1_1internal.html#ae63557fe9ccf973c29dc6dd122fa4ae0">buffer</a>.<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#a384f1304da6ce18c4713368327354479">data</a>(), 1, <a class="code" href="namespacefmt_1_1v5_1_1internal.html#ae63557fe9ccf973c29dc6dd122fa4ae0">buffer</a>.<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#ac4761deba75a7238ae29243b159b9943">size</a>(), f);</div>
<div class="line"><a name="l00950"></a><span class="lineno">  950</span>&#160;}</div>
<div class="line"><a name="l00951"></a><span class="lineno">  951</span>&#160; </div>
<div class="line"><a name="l00952"></a><span class="lineno"><a class="line" href="namespacefmt_1_1v5.html#affa5d05127df37768b43a062b2859d0f">  952</a></span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> <span class="keywordtype">void</span> <a class="code" href="namespacefmt_1_1v5.html#a4df07cd85241561a9b8ce9a7351b1606">vprint</a>(std::FILE *f, <a class="code" href="classfmt_1_1v5_1_1basic__string__view.html">wstring_view</a> format_str, <a class="code" href="structfmt_1_1v5_1_1wformat__args.html">wformat_args</a> args) {</div>
<div class="line"><a name="l00953"></a><span class="lineno">  953</span>&#160;  <a class="code" href="classfmt_1_1v5_1_1basic__memory__buffer.html">wmemory_buffer</a> <a class="code" href="namespacefmt_1_1v5_1_1internal.html#ae63557fe9ccf973c29dc6dd122fa4ae0">buffer</a>;</div>
<div class="line"><a name="l00954"></a><span class="lineno">  954</span>&#160;  <a class="code" href="namespacefmt_1_1v5_1_1internal.html#ac0cedf42ad81436f35151f2173458d61">internal::vformat_to</a>(<a class="code" href="namespacefmt_1_1v5_1_1internal.html#ae63557fe9ccf973c29dc6dd122fa4ae0">buffer</a>, format_str, args);</div>
<div class="line"><a name="l00955"></a><span class="lineno">  955</span>&#160;  std::fwrite(<a class="code" href="namespacefmt_1_1v5_1_1internal.html#ae63557fe9ccf973c29dc6dd122fa4ae0">buffer</a>.<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#a384f1304da6ce18c4713368327354479">data</a>(), <span class="keyword">sizeof</span>(wchar_t), <a class="code" href="namespacefmt_1_1v5_1_1internal.html#ae63557fe9ccf973c29dc6dd122fa4ae0">buffer</a>.<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#ac4761deba75a7238ae29243b159b9943">size</a>(), f);</div>
<div class="line"><a name="l00956"></a><span class="lineno">  956</span>&#160;}</div>
<div class="line"><a name="l00957"></a><span class="lineno">  957</span>&#160; </div>
<div class="line"><a name="l00958"></a><span class="lineno"><a class="line" href="namespacefmt_1_1v5.html#ab6661d948e3c2d86d501b5ab48236a68">  958</a></span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> <span class="keywordtype">void</span> <a class="code" href="namespacefmt_1_1v5.html#a4df07cd85241561a9b8ce9a7351b1606">vprint</a>(<a class="code" href="classfmt_1_1v5_1_1basic__string__view.html">string_view</a> format_str, <a class="code" href="structfmt_1_1v5_1_1format__args.html">format_args</a> args) {</div>
<div class="line"><a name="l00959"></a><span class="lineno">  959</span>&#160;  <a class="code" href="namespacefmt_1_1v5.html#a4df07cd85241561a9b8ce9a7351b1606">vprint</a>(stdout, format_str, args);</div>
<div class="line"><a name="l00960"></a><span class="lineno">  960</span>&#160;}</div>
<div class="line"><a name="l00961"></a><span class="lineno">  961</span>&#160; </div>
<div class="line"><a name="l00962"></a><span class="lineno"><a class="line" href="namespacefmt_1_1v5.html#a2fa996843b6bac7a9a298172eede8d39">  962</a></span>&#160;<a class="code" href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a> <span class="keywordtype">void</span> <a class="code" href="namespacefmt_1_1v5.html#a4df07cd85241561a9b8ce9a7351b1606">vprint</a>(<a class="code" href="classfmt_1_1v5_1_1basic__string__view.html">wstring_view</a> format_str, <a class="code" href="structfmt_1_1v5_1_1wformat__args.html">wformat_args</a> args) {</div>
<div class="line"><a name="l00963"></a><span class="lineno">  963</span>&#160;  <a class="code" href="namespacefmt_1_1v5.html#a4df07cd85241561a9b8ce9a7351b1606">vprint</a>(stdout, format_str, args);</div>
<div class="line"><a name="l00964"></a><span class="lineno">  964</span>&#160;}</div>
<div class="line"><a name="l00965"></a><span class="lineno">  965</span>&#160; </div>
<div class="line"><a name="l00966"></a><span class="lineno">  966</span>&#160;<a class="code" href="core_8h.html#ae0d2fbdf031547a949fc7e1c0b3c97f1">FMT_END_NAMESPACE</a></div>
<div class="line"><a name="l00967"></a><span class="lineno">  967</span>&#160; </div>
<div class="line"><a name="l00968"></a><span class="lineno">  968</span>&#160;<span class="preprocessor">#ifdef _MSC_VER</span></div>
<div class="line"><a name="l00969"></a><span class="lineno">  969</span>&#160;<span class="preprocessor"># pragma warning(pop)</span></div>
<div class="line"><a name="l00970"></a><span class="lineno">  970</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00971"></a><span class="lineno">  971</span>&#160; </div>
<div class="line"><a name="l00972"></a><span class="lineno">  972</span>&#160;<span class="preprocessor">#endif  // FMT_FORMAT_INL_H_</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1gen__digits__params_html_af94ccb0990229d78c551373b07abb3b2"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html#af94ccb0990229d78c551373b07abb3b2">fmt::v5::internal::gen_digits_params::trailing_zeros</a></div><div class="ttdeci">bool trailing_zeros</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00545">format-inl.h:545</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_1_1internal_html_a63add7333da71960d33855aa1489c2ee"><div class="ttname"><a href="namespacefmt_1_1v5_1_1internal.html#a63add7333da71960d33855aa1489c2ee">fmt::v5::internal::process_specs</a></div><div class="ttdeci">gen_digits_params process_specs(const core_format_specs &amp;specs, int exp, buffer &amp;buf)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00673">format-inl.h:673</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1internal_1_1fp_html_adfdc87ad85220297755fbe7c6a8e1590"><div class="ttname"><a href="classfmt_1_1v5_1_1internal_1_1fp.html#adfdc87ad85220297755fbe7c6a8e1590">fmt::v5::internal::fp::fp</a></div><div class="ttdeci">fp(Double d)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00380">format-inl.h:380</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1basic__writer_html_a531918e4cf5995d2c14785b3eb1f9699"><div class="ttname"><a href="classfmt_1_1v5_1_1basic__writer.html#a531918e4cf5995d2c14785b3eb1f9699">fmt::v5::basic_writer::write</a></div><div class="ttdeci">void write(int value)</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l02573">format.h:2573</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1basic__memory__buffer_html"><div class="ttname"><a href="classfmt_1_1v5_1_1basic__memory__buffer.html">fmt::v5::basic_memory_buffer</a></div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00464">format.h:464</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1internal_1_1fp_html_a1637cce65f488ce657cb23db4c7c0219"><div class="ttname"><a href="classfmt_1_1v5_1_1internal_1_1fp.html#a1637cce65f488ce657cb23db4c7c0219">fmt::v5::internal::fp::e</a></div><div class="ttdeci">int e</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00369">format-inl.h:369</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_html_aede03e1a36d834c65a48c9349a085fc8"><div class="ttname"><a href="namespacefmt_1_1v5.html#aede03e1a36d834c65a48c9349a085fc8">fmt::v5::report_system_error</a></div><div class="ttdeci">void report_system_error(int error_code, fmt::string_view message)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00933">format-inl.h:933</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1prettify__handler_html_ad4387eb92b404732e7cc8b4548fc9abe"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#ad4387eb92b404732e7cc8b4548fc9abe">fmt::v5::internal::prettify_handler::insert</a></div><div class="ttdeci">void insert(ptrdiff_t pos, char c)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00567">format-inl.h:567</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1internal_1_1fp_html_ad52e794a6624dfc7d992bd2eea3ab23f"><div class="ttname"><a href="classfmt_1_1v5_1_1internal_1_1fp.html#ad52e794a6624dfc7d992bd2eea3ab23f">fmt::v5::internal::fp::f</a></div><div class="ttdeci">significand_type f</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00368">format-inl.h:368</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1basic__string__view_html"><div class="ttname"><a href="classfmt_1_1v5_1_1basic__string__view.html">fmt::v5::basic_string_view&lt; char8_t &gt;</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1prettify__handler_html_ab939ca54a7a5ba0a79c2232a5b3aff46"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#ab939ca54a7a5ba0a79c2232a5b3aff46">fmt::v5::internal::prettify_handler::remove_trailing</a></div><div class="ttdeci">void remove_trailing(char c)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00580">format-inl.h:580</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_1_1internal_html_a171b42c0035379bd3c3983f573ee09db"><div class="ttname"><a href="namespacefmt_1_1v5_1_1internal.html#a171b42c0035379bd3c3983f573ee09db">fmt::v5::internal::grisu2_prettify</a></div><div class="ttdeci">void grisu2_prettify(const gen_digits_params &amp;params, int size, int exp, Handler &amp;&amp;handler)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00619">format-inl.h:619</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1gen__digits__params_html_ae5d119f024f6844f366eacbb80dc905b"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html#ae5d119f024f6844f366eacbb80dc905b">fmt::v5::internal::gen_digits_params::num_digits</a></div><div class="ttdeci">int num_digits</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00542">format-inl.h:542</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1basic__data_html_a5ea6f88946a0959275332ac157eb9775"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1basic__data.html#a5ea6f88946a0959275332ac157eb9775">fmt::v5::internal::basic_data::BACKGROUND_COLOR</a></div><div class="ttdeci">static const char BACKGROUND_COLOR[]</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00755">format.h:755</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1core__format__specs_html"><div class="ttname"><a href="structfmt_1_1v5_1_1core__format__specs.html">fmt::v5::core_format_specs</a></div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l01100">format.h:1100</a></div></div>
<div class="ttc" id="acore_8h_html_a9a4960b70582ed2620911a0b75dce0b5"><div class="ttname"><a href="core_8h.html#a9a4960b70582ed2620911a0b75dce0b5">FMT_API</a></div><div class="ttdeci">#define FMT_API</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00166">core.h:166</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1internal_1_1value_html"><div class="ttname"><a href="classfmt_1_1v5_1_1internal_1_1value.html">fmt::v5::internal::value</a></div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00564">core.h:564</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1internal_1_1basic__buffer_html_ac4761deba75a7238ae29243b159b9943"><div class="ttname"><a href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#ac4761deba75a7238ae29243b159b9943">fmt::v5::internal::basic_buffer::size</a></div><div class="ttdeci">std::size_t size() const</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00250">core.h:250</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1internal_1_1basic__buffer_html_a7bf5da24d9aec9ed9b5e42b912a38a7b"><div class="ttname"><a href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#a7bf5da24d9aec9ed9b5e42b912a38a7b">fmt::v5::internal::basic_buffer::capacity</a></div><div class="ttdeci">std::size_t capacity() const</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00253">core.h:253</a></div></div>
<div class="ttc" id="aformat_8h_html"><div class="ttname"><a href="format_8h.html">format.h</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1internal_1_1basic__buffer_html_ae92aa3486601bb4ba757be96b3c6bee3"><div class="ttname"><a href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#ae92aa3486601bb4ba757be96b3c6bee3">fmt::v5::internal::basic_buffer::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00270">core.h:270</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_html_a7f211f565c9879fafad806b788dde60d"><div class="ttname"><a href="namespacefmt_1_1v5.html#a7f211f565c9879fafad806b788dde60d">fmt::v5::format_system_error</a></div><div class="ttdeci">void format_system_error(internal::buffer &amp;out, int error_code, string_view message)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00906">format-inl.h:906</a></div></div>
<div class="ttc" id="aformat-inl_8h_html_a9a9bb3caa94066b3adc175bb24cb1783"><div class="ttname"><a href="format-inl_8h.html#a9a9bb3caa94066b3adc175bb24cb1783">FMT_SNPRINTF</a></div><div class="ttdeci">#define FMT_SNPRINTF</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00070">format-inl.h:70</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1internal_1_1fp_html_a268d69d61ba1e06520408dfdca76bba1"><div class="ttname"><a href="classfmt_1_1v5_1_1internal_1_1fp.html#a268d69d61ba1e06520408dfdca76bba1">fmt::v5::internal::fp::fp</a></div><div class="ttdeci">fp(uint64_t f_val, int e_val)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00375">format-inl.h:375</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_1_1internal_html_a5d09560672b4a60a1414fa7321b9ea66"><div class="ttname"><a href="namespacefmt_1_1v5_1_1internal.html#a5d09560672b4a60a1414fa7321b9ea66">fmt::v5::internal::grisu2_round</a></div><div class="ttdeci">bool grisu2_round(char *buf, int &amp;size, int max_digits, uint64_t delta, uint64_t remainder, uint64_t exp, uint64_t diff, int &amp;exp10)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00466">format-inl.h:466</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_1_1internal_html_a80875403133fef6385e50480459b1136"><div class="ttname"><a href="namespacefmt_1_1v5_1_1internal.html#a80875403133fef6385e50480459b1136">fmt::v5::internal::thousands_sep_impl</a></div><div class="ttdeci">Char thousands_sep_impl(locale_ref loc)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00222">format-inl.h:222</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1char__counter_html_acbc4f0c13cb3239010ff37f09049f72e"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1char__counter.html#acbc4f0c13cb3239010ff37f09049f72e">fmt::v5::internal::char_counter::insert</a></div><div class="ttdeci">void insert(ptrdiff_t, ptrdiff_t n, F)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00663">format-inl.h:663</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1internal_1_1fp_html_ab9070b4fc350e45c0d3c9685e8240fc2"><div class="ttname"><a href="classfmt_1_1v5_1_1internal_1_1fp.html#ab9070b4fc350e45c0d3c9685e8240fc2">fmt::v5::internal::fp::compute_boundaries</a></div><div class="ttdeci">void compute_boundaries(fp &amp;lower, fp &amp;upper) const</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00418">format-inl.h:418</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1basic__data_html_ad815e597b46d92023beb025b464b4520"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1basic__data.html#ad815e597b46d92023beb025b464b4520">fmt::v5::internal::basic_data::DIGITS</a></div><div class="ttdeci">static const char DIGITS[]</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00753">format.h:753</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_1_1internal_html_aa8305888233bc94e346b9c162f6a8f18"><div class="ttname"><a href="namespacefmt_1_1v5_1_1internal.html#aa8305888233bc94e346b9c162f6a8f18">fmt::v5::internal::grisu2_gen_digits</a></div><div class="ttdeci">bool grisu2_gen_digits(char *buf, int &amp;size, uint32_t hi, uint64_t lo, int &amp;exp, uint64_t delta, const fp &amp;one, const fp &amp;diff, int max_digits)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00484">format-inl.h:484</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1basic__data_html_ad9d536a7e57a5e2dd100c1cbbb4f1100"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1basic__data.html#ad9d536a7e57a5e2dd100c1cbbb4f1100">fmt::v5::internal::basic_data::FOREGROUND_COLOR</a></div><div class="ttdeci">static const char FOREGROUND_COLOR[]</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00754">format.h:754</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1char__counter_html_a51b440b6cd612f4b83c3c6c4816f6022"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1char__counter.html#a51b440b6cd612f4b83c3c6c4816f6022">fmt::v5::internal::char_counter::insert</a></div><div class="ttdeci">void insert(ptrdiff_t, char)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00664">format-inl.h:664</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_html_af7906102d07e0d93b609aef6c05fc27a"><div class="ttname"><a href="namespacefmt_1_1v5.html#af7906102d07e0d93b609aef6c05fc27a">fmt::v5::to_string</a></div><div class="ttdeci">std::string to_string(const T &amp;value)</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l03209">format.h:3209</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_html_a2afc98455558e211af15ed1ad8c12bfaa1d9e9ff365a9e37fdcec9b729b9ab046"><div class="ttname"><a href="namespacefmt_1_1v5.html#a2afc98455558e211af15ed1ad8c12bfaa1d9e9ff365a9e37fdcec9b729b9ab046">fmt::v5::HASH_FLAG</a></div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l01084">format.h:1084</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1prettify__handler_html_afeb64699e57c8b20dff3b44048fb60ac"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#afeb64699e57c8b20dff3b44048fb60ac">fmt::v5::internal::prettify_handler::~prettify_handler</a></div><div class="ttdeci">~prettify_handler()</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00555">format-inl.h:555</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1internal_1_1basic__buffer_html_a384f1304da6ce18c4713368327354479"><div class="ttname"><a href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#a384f1304da6ce18c4713368327354479">fmt::v5::internal::basic_buffer::data</a></div><div class="ttdeci">T * data()</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00256">core.h:256</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1internal_1_1fp_html_ab59ad7dfcd4ed603592d93cf4b7aaa42"><div class="ttname"><a href="classfmt_1_1v5_1_1internal_1_1fp.html#ab59ad7dfcd4ed603592d93cf4b7aaa42">fmt::v5::internal::fp::normalize</a></div><div class="ttdeci">void normalize()</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00401">format-inl.h:401</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1basic__data_html_a4984044ce1b065540381b3694eb994b0"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1basic__data.html#a4984044ce1b065540381b3694eb994b0">fmt::v5::internal::basic_data::POW10_SIGNIFICANDS</a></div><div class="ttdeci">static const uint64_t POW10_SIGNIFICANDS[]</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00751">format.h:751</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_1_1internal_html_abef3b695050c4132b4fc4d7f256b9580"><div class="ttname"><a href="namespacefmt_1_1v5_1_1internal.html#abef3b695050c4132b4fc4d7f256b9580">fmt::v5::internal::to_unsigned</a></div><div class="ttdeci">std::make_unsigned&lt; Int &gt;::type to_unsigned(Int value)</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00208">core.h:208</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1char__counter_html_a19a71ff0f2ccc8895dcc5f2977b0c2cd"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1char__counter.html#a19a71ff0f2ccc8895dcc5f2977b0c2cd">fmt::v5::internal::char_counter::remove_trailing</a></div><div class="ttdeci">void remove_trailing(char)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00667">format-inl.h:667</a></div></div>
<div class="ttc" id="aformat-inl_8h_html_a4aa79926398ee27fe7d6db8b0dd54edf"><div class="ttname"><a href="format-inl_8h.html#a4aa79926398ee27fe7d6db8b0dd54edf">FMT_TRY</a></div><div class="ttdeci">#define FMT_TRY</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00040">format-inl.h:40</a></div></div>
<div class="ttc" id="aformat-inl_8h_html_aeff75c93a29bc942ca36b31a4b634fe9"><div class="ttname"><a href="format-inl_8h.html#aeff75c93a29bc942ca36b31a4b634fe9">FMT_POWERS_OF_10</a></div><div class="ttdeci">#define FMT_POWERS_OF_10(factor)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00269">format-inl.h:269</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_html_ae7eb8fc665a67b192dc6437bc62ca354a0af8f7e3ddd1a426ef65b42502b4d3a0"><div class="ttname"><a href="namespacefmt_1_1v5.html#ae7eb8fc665a67b192dc6437bc62ca354a0af8f7e3ddd1a426ef65b42502b4d3a0">fmt::v5::inline_buffer_size</a></div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00431">format.h:431</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1internal_1_1basic__buffer_html"><div class="ttname"><a href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html">fmt::v5::internal::basic_buffer&lt; char &gt;</a></div></div>
<div class="ttc" id="acore_8h_html_af7f827e50dd7667484c279ac1d38f30b"><div class="ttname"><a href="core_8h.html#af7f827e50dd7667484c279ac1d38f30b">FMT_NULL</a></div><div class="ttdeci">#define FMT_NULL</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00107">core.h:107</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1fill_html_a8ac696cf33afd220f17fea77b4fd9df2"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1fill.html#a8ac696cf33afd220f17fea77b4fd9df2">fmt::v5::internal::fill::operator()</a></div><div class="ttdeci">void operator()(char *buf) const</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00610">format-inl.h:610</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1core__format__specs_html_ae8225c1b5ab54383472fed40c9ccf4b6"><div class="ttname"><a href="structfmt_1_1v5_1_1core__format__specs.html#ae8225c1b5ab54383472fed40c9ccf4b6">fmt::v5::core_format_specs::type</a></div><div class="ttdeci">char type</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l01103">format.h:1103</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1basic__format__context_html"><div class="ttname"><a href="classfmt_1_1v5_1_1basic__format__context.html">fmt::v5::basic_format_context</a></div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l01081">core.h:1081</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_html_afbb941ac362fc08798ab3f9b1303f88f"><div class="ttname"><a href="namespacefmt_1_1v5.html#afbb941ac362fc08798ab3f9b1303f88f">fmt::v5::vformat</a></div><div class="ttdeci">std::basic_string&lt; Char &gt; vformat(const S &amp;format_str, basic_format_args&lt; typename buffer_context&lt; Char &gt;::type &gt; args)</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l01437">core.h:1437</a></div></div>
<div class="ttc" id="aformat-inl_8h_html_a35d4bc2bf717ac7731de7713c54175bb"><div class="ttname"><a href="format-inl_8h.html#a35d4bc2bf717ac7731de7713c54175bb">FMT_FALLTHROUGH</a></div><div class="ttdeci">#define FMT_FALLTHROUGH</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00538">format-inl.h:538</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1basic__data_html"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1basic__data.html">fmt::v5::internal::basic_data</a></div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00747">format.h:747</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_html_a4df07cd85241561a9b8ce9a7351b1606"><div class="ttname"><a href="namespacefmt_1_1v5.html#a4df07cd85241561a9b8ce9a7351b1606">fmt::v5::vprint</a></div><div class="ttdeci">void vprint(std::FILE *f, const text_style &amp;ts, const S &amp;format, basic_format_args&lt; typename buffer_context&lt; Char &gt;::type &gt; args)</div><div class="ttdef"><b>Definition:</b> <a href="color_8h_source.html#l00517">color.h:517</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1char__counter_html"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1char__counter.html">fmt::v5::internal::char_counter</a></div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00659">format-inl.h:659</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_1_1internal_html_a58d822138c8882afb5559c4b1d7729cc"><div class="ttname"><a href="namespacefmt_1_1v5_1_1internal.html#a58d822138c8882afb5559c4b1d7729cc">fmt::v5::internal::is_negative</a></div><div class="ttdeci">std::enable_if&lt; std::numeric_limits&lt; T &gt;::is_signed, bool &gt;::type is_negative(T value)</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00727">format.h:727</a></div></div>
<div class="ttc" id="acore_8h_html_aef128913e8400683b1cbd1a3a2e11df3"><div class="ttname"><a href="core_8h.html#aef128913e8400683b1cbd1a3a2e11df3">FMT_NOEXCEPT</a></div><div class="ttdeci">#define FMT_NOEXCEPT</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00140">core.h:140</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_html_a37de00647fc1e0345f485313cdd522f7"><div class="ttname"><a href="namespacefmt_1_1v5.html#a37de00647fc1e0345f485313cdd522f7">fmt::v5::wstring_view</a></div><div class="ttdeci">basic_string_view&lt; wchar_t &gt; wstring_view</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00429">core.h:429</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1core__format__specs_html_a721c8bd2bf91d00f04dc6ef6fcc0189a"><div class="ttname"><a href="structfmt_1_1v5_1_1core__format__specs.html#a721c8bd2bf91d00f04dc6ef6fcc0189a">fmt::v5::core_format_specs::has</a></div><div class="ttdeci">bool has(unsigned f) const</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l01106">format.h:1106</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1basic__writer_html"><div class="ttname"><a href="classfmt_1_1v5_1_1basic__writer.html">fmt::v5::basic_writer</a></div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00330">format.h:330</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1error__handler_html_af917438f30466b0b8cd4de4f8b549ab9"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1error__handler.html#af917438f30466b0b8cd4de4f8b549ab9">fmt::v5::internal::error_handler::on_error</a></div><div class="ttdeci">void on_error(const char *message)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00929">format-inl.h:929</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1prettify__handler_html_aeefd7bd2fef0e07643645f824d347ee2"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#aeefd7bd2fef0e07643645f824d347ee2">fmt::v5::internal::prettify_handler::size</a></div><div class="ttdeci">ptrdiff_t size</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00550">format-inl.h:550</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1fill_html"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1fill.html">fmt::v5::internal::fill</a></div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00608">format-inl.h:608</a></div></div>
<div class="ttc" id="acore_8h_html_ae0d2fbdf031547a949fc7e1c0b3c97f1"><div class="ttname"><a href="core_8h.html#ae0d2fbdf031547a949fc7e1c0b3c97f1">FMT_END_NAMESPACE</a></div><div class="ttdeci">#define FMT_END_NAMESPACE</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00153">core.h:153</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_1_1internal_html_ae63557fe9ccf973c29dc6dd122fa4ae0"><div class="ttname"><a href="namespacefmt_1_1v5_1_1internal.html#ae63557fe9ccf973c29dc6dd122fa4ae0">fmt::v5::internal::buffer</a></div><div class="ttdeci">basic_buffer&lt; char &gt; buffer</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00291">core.h:291</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_html_aee7e37f3db0fc1ce34674f6b82c1f407"><div class="ttname"><a href="namespacefmt_1_1v5.html#aee7e37f3db0fc1ce34674f6b82c1f407">fmt::v5::wmemory_buffer</a></div><div class="ttdeci">basic_memory_buffer&lt; wchar_t &gt; wmemory_buffer</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00554">format.h:554</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1char__counter_html_a100c9c7d1618245f315f83af27110d2b"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1char__counter.html#a100c9c7d1618245f315f83af27110d2b">fmt::v5::internal::char_counter::size</a></div><div class="ttdeci">ptrdiff_t size</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00660">format-inl.h:660</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1format__args_html"><div class="ttname"><a href="structfmt_1_1v5_1_1format__args.html">fmt::v5::format_args</a></div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l01294">core.h:1294</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1prettify__handler_html_a218e3b77fad28065c54461d33f82c8fb"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#a218e3b77fad28065c54461d33f82c8fb">fmt::v5::internal::prettify_handler::data</a></div><div class="ttdeci">char * data</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00549">format-inl.h:549</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1internal_1_1locale__ref_html"><div class="ttname"><a href="classfmt_1_1v5_1_1internal_1_1locale__ref.html">fmt::v5::internal::locale_ref</a></div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00972">core.h:972</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_1_1internal_html_a3d8332f4e1ff7eb4cdacf32a3fdf972a"><div class="ttname"><a href="namespacefmt_1_1v5_1_1internal.html#a3d8332f4e1ff7eb4cdacf32a3fdf972a">fmt::v5::internal::operator*</a></div><div class="ttdeci">fp operator*(fp x, fp y)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00442">format-inl.h:442</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1basic__string__view_html_abd82d74b110d5d4f52e0282e4d11fc99"><div class="ttname"><a href="classfmt_1_1v5_1_1basic__string__view.html#abd82d74b110d5d4f52e0282e4d11fc99">fmt::v5::basic_string_view::size</a></div><div class="ttdeci">size_t size() const</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00389">core.h:389</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1char__traits_html"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1char__traits.html">fmt::v5::internal::char_traits</a></div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00559">format.h:559</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1fill_html_af4901adffe747a5563f73ec9e640420c"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1fill.html#af4901adffe747a5563f73ec9e640420c">fmt::v5::internal::fill::n</a></div><div class="ttdeci">size_t n</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00609">format-inl.h:609</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_1_1internal_html_a1b8c0cdffe57c5fe9dc629babe471316"><div class="ttname"><a href="namespacefmt_1_1v5_1_1internal.html#a1b8c0cdffe57c5fe9dc629babe471316">fmt::v5::internal::count_digits</a></div><div class="ttdeci">int count_digits(uint64_t n)</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00777">format.h:777</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1format__error_html"><div class="ttname"><a href="classfmt_1_1v5_1_1format__error.html">fmt::v5::format_error</a></div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00365">format.h:365</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1wformat__args_html"><div class="ttname"><a href="structfmt_1_1v5_1_1wformat__args.html">fmt::v5::wformat_args</a></div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l01299">core.h:1299</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1basic__data_html_a6da82443fd09335fe5cbe3fe39cbc97b"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1basic__data.html#a6da82443fd09335fe5cbe3fe39cbc97b">fmt::v5::internal::basic_data::RESET_COLOR</a></div><div class="ttdeci">static const char RESET_COLOR[]</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00756">format.h:756</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_html_a3301ccbf6a0ab1b233242041a835a54a"><div class="ttname"><a href="namespacefmt_1_1v5.html#a3301ccbf6a0ab1b233242041a835a54a">fmt::v5::string_view</a></div><div class="ttdeci">basic_string_view&lt; char &gt; string_view</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00428">core.h:428</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1internal_1_1fp_html_ad0175b9acfb79c562984ed002fe09c53"><div class="ttname"><a href="classfmt_1_1v5_1_1internal_1_1fp.html#ad0175b9acfb79c562984ed002fe09c53">fmt::v5::internal::fp::significand_size</a></div><div class="ttdeci">static const int significand_size</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00371">format-inl.h:371</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_1_1internal_html_ac0cedf42ad81436f35151f2173458d61"><div class="ttname"><a href="namespacefmt_1_1v5_1_1internal.html#ac0cedf42ad81436f35151f2173458d61">fmt::v5::internal::vformat_to</a></div><div class="ttdeci">buffer_context&lt; Char &gt;::type::iterator vformat_to(internal::basic_buffer&lt; Char &gt; &amp;buf, basic_string_view&lt; Char &gt; format_str, basic_format_args&lt; typename buffer_context&lt; Char &gt;::type &gt; args)</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l03233">format.h:3233</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1prettify__handler_html"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html">fmt::v5::internal::prettify_handler</a></div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00548">format-inl.h:548</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1prettify__handler_html_a44f39b58e69588b81665ce2f0fb2e8e6"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#a44f39b58e69588b81665ce2f0fb2e8e6">fmt::v5::internal::prettify_handler::insert</a></div><div class="ttdeci">void insert(ptrdiff_t pos, ptrdiff_t n, F f)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00561">format-inl.h:561</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1gen__digits__params_html_a46a9d3e58fa1f2918ee6285933762786"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html#a46a9d3e58fa1f2918ee6285933762786">fmt::v5::internal::gen_digits_params::fixed</a></div><div class="ttdeci">bool fixed</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00543">format-inl.h:543</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_1_1internal_html_a37f320718a8fbb4cf326d075f6332e93"><div class="ttname"><a href="namespacefmt_1_1v5_1_1internal.html#a37f320718a8fbb4cf326d075f6332e93">fmt::v5::internal::sprintf_format</a></div><div class="ttdeci">void sprintf_format(Double value, internal::buffer &amp;buf, core_format_specs spec)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00764">format-inl.h:764</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1system__error_html_ac761354e3eb707044395fd140020e796"><div class="ttname"><a href="classfmt_1_1v5_1_1system__error.html#ac761354e3eb707044395fd140020e796">fmt::v5::system_error::error_code_</a></div><div class="ttdeci">int error_code_</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l02203">format.h:2203</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1internal_1_1basic__buffer_html_af20fa1cd5e5bd230ab1d4e89c6aead38"><div class="ttname"><a href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#af20fa1cd5e5bd230ab1d4e89c6aead38">fmt::v5::internal::basic_buffer::resize</a></div><div class="ttdeci">void resize(std::size_t new_size)</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00264">core.h:264</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_1_1internal_html_a6c2c4c3c6a5dc4e3559ed105c44c4d9e"><div class="ttname"><a href="namespacefmt_1_1v5_1_1internal.html#a6c2c4c3c6a5dc4e3559ed105c44c4d9e">fmt::v5::internal::count_code_points</a></div><div class="ttdeci">size_t count_code_points(basic_string_view&lt; Char &gt; s)</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00794">format.h:794</a></div></div>
<div class="ttc" id="acore_8h_html_a03e7ee720f43adc7d83c652a6a5dd5f8"><div class="ttname"><a href="core_8h.html#a03e7ee720f43adc7d83c652a6a5dd5f8">FMT_ASSERT</a></div><div class="ttdeci">#define FMT_ASSERT(condition, message)</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00170">core.h:170</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1basic__data_html_a7c75c3b052395aa783f67d1221946c27"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1basic__data.html#a7c75c3b052395aa783f67d1221946c27">fmt::v5::internal::basic_data::ZERO_OR_POWERS_OF_10_32</a></div><div class="ttdeci">static const uint32_t ZERO_OR_POWERS_OF_10_32[]</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00749">format.h:749</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1internal_1_1fp_html"><div class="ttname"><a href="classfmt_1_1v5_1_1internal_1_1fp.html">fmt::v5::internal::fp</a></div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00353">format-inl.h:353</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1basic__string__view_html_a517e9e8fc58c52c7816fa647d5e69f9f"><div class="ttname"><a href="classfmt_1_1v5_1_1basic__string__view.html#a517e9e8fc58c52c7816fa647d5e69f9f">fmt::v5::basic_string_view::data</a></div><div class="ttdeci">const Char * data() const</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00386">core.h:386</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1internal_1_1fp_html_a4461b3a2cdedfe644911f3984180a0b9"><div class="ttname"><a href="classfmt_1_1v5_1_1internal_1_1fp.html#a4461b3a2cdedfe644911f3984180a0b9">fmt::v5::internal::fp::fp</a></div><div class="ttdeci">fp()</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00374">format-inl.h:374</a></div></div>
<div class="ttc" id="aformat_8h_html_a02c8898388e0ae59aab58be14fcd4e05"><div class="ttname"><a href="format_8h.html#a02c8898388e0ae59aab58be14fcd4e05">FMT_FUNC</a></div><div class="ttdeci">#define FMT_FUNC</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l03547">format.h:3547</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1prettify__handler_html_aa0537d2fca130c630cdbc7d7e06bc4cf"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#aa0537d2fca130c630cdbc7d7e06bc4cf">fmt::v5::internal::prettify_handler::append</a></div><div class="ttdeci">void append(char c)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00578">format-inl.h:578</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1core__format__specs_html_a445855f2d6d7886e1afb26e570618c47"><div class="ttname"><a href="structfmt_1_1v5_1_1core__format__specs.html#a445855f2d6d7886e1afb26e570618c47">fmt::v5::core_format_specs::precision</a></div><div class="ttdeci">int precision</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l01101">format.h:1101</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1gen__digits__params_html_a4d9d74312532c965bddc7eb88d79600d"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html#a4d9d74312532c965bddc7eb88d79600d">fmt::v5::internal::gen_digits_params::upper</a></div><div class="ttdeci">bool upper</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00544">format-inl.h:544</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1basic__data_html_aff0c2d26ec88801043953054e3bcc971"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1basic__data.html#aff0c2d26ec88801043953054e3bcc971">fmt::v5::internal::basic_data::ZERO_OR_POWERS_OF_10_64</a></div><div class="ttdeci">static const uint64_t ZERO_OR_POWERS_OF_10_64[]</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00750">format.h:750</a></div></div>
<div class="ttc" id="aformat-inl_8h_html_ab8efe0100a6d7cc74729f5bf7537799c"><div class="ttname"><a href="format-inl_8h.html#ab8efe0100a6d7cc74729f5bf7537799c">FMT_CATCH</a></div><div class="ttdeci">#define FMT_CATCH(x)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00041">format-inl.h:41</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1basic__format__args_html"><div class="ttname"><a href="classfmt_1_1v5_1_1basic__format__args.html">fmt::v5::basic_format_args</a></div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00487">core.h:487</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_html_aa9df55c2a1be07baac1ee84d206683f5"><div class="ttname"><a href="namespacefmt_1_1v5.html#aa9df55c2a1be07baac1ee84d206683f5">fmt::v5::char8_t</a></div><div class="ttdeci">char8_t</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00407">format.h:407</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1error__code_html"><div class="ttname"><a href="classfmt_1_1v5_1_1error__code.html">fmt::v5::error_code</a></div><div class="ttdef"><b>Definition:</b> <a href="posix_8h_source.html#l00116">posix.h:116</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1gen__digits__params_html"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1gen__digits__params.html">fmt::v5::internal::gen_digits_params</a></div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00541">format-inl.h:541</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1basic__data_html_a684a3b8ed9c908d5c1d4aea407ac18ae"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1basic__data.html#a684a3b8ed9c908d5c1d4aea407ac18ae">fmt::v5::internal::basic_data::WRESET_COLOR</a></div><div class="ttdeci">static const wchar_t WRESET_COLOR[]</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00757">format.h:757</a></div></div>
<div class="ttc" id="aformat-inl_8h_html_a3bbfb7ce6b764966d8cf5d018589375e"><div class="ttname"><a href="format-inl_8h.html#a3bbfb7ce6b764966d8cf5d018589375e">strerror_s</a></div><div class="ttdeci">fmt::internal::null strerror_s(char *, std::size_t,...)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00061">format-inl.h:61</a></div></div>
<div class="ttc" id="acore_8h_html_a887c191adf8cfaf06ed40b5c4d487343"><div class="ttname"><a href="core_8h.html#a887c191adf8cfaf06ed40b5c4d487343">FMT_BEGIN_NAMESPACE</a></div><div class="ttdeci">#define FMT_BEGIN_NAMESPACE</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00155">core.h:155</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1prettify__handler_html_a5a8b13e38107753a839767adae553ed2"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#a5a8b13e38107753a839767adae553ed2">fmt::v5::internal::prettify_handler::append</a></div><div class="ttdeci">void append(ptrdiff_t n, char c)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00573">format-inl.h:573</a></div></div>
<div class="ttc" id="anamespacespdlog_1_1details_1_1fmt__helper_html_a976eeb3c4a42ccfb05437aa9a0d4d9f7"><div class="ttname"><a href="namespacespdlog_1_1details_1_1fmt__helper.html#a976eeb3c4a42ccfb05437aa9a0d4d9f7">spdlog::details::fmt_helper::count_digits</a></div><div class="ttdeci">unsigned count_digits(T n)</div><div class="ttdef"><b>Definition:</b> <a href="fmt__helper_8h_source.html#l00047">fmt_helper.h:47</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_html_aa896aba6bd0796c1d93bd6f71556a9f5"><div class="ttname"><a href="namespacefmt_1_1v5.html#aa896aba6bd0796c1d93bd6f71556a9f5">fmt::v5::writer</a></div><div class="ttdeci">basic_writer&lt; back_insert_range&lt; internal::buffer &gt; &gt; writer</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00361">format.h:361</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_1_1internal_html_a270efa9d1d49796e04a96f764a68c8b5"><div class="ttname"><a href="namespacefmt_1_1v5_1_1internal.html#a270efa9d1d49796e04a96f764a68c8b5">fmt::v5::internal::grisu2_format</a></div><div class="ttdeci">std::enable_if&lt; sizeof(Double)==sizeof(uint64_t), bool &gt;::type grisu2_format(Double value, buffer &amp;buf, core_format_specs specs)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00716">format-inl.h:716</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_1_1internal_html_a80e439a6cba95b74e9324248a41b1005"><div class="ttname"><a href="namespacefmt_1_1v5_1_1internal.html#a80e439a6cba95b74e9324248a41b1005">fmt::v5::internal::write_exponent</a></div><div class="ttdeci">void write_exponent(int exp, Handler &amp;&amp;h)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00587">format-inl.h:587</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_1_1internal_html_af8b98afef956b03a99bc61d088705f13"><div class="ttname"><a href="namespacefmt_1_1v5_1_1internal.html#af8b98afef956b03a99bc61d088705f13">fmt::v5::internal::type</a></div><div class="ttdeci">type</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00530">core.h:530</a></div></div>
<div class="ttc" id="aformat-inl_8h_html_a8307cb500850a7c5033cf64702e15990"><div class="ttname"><a href="format-inl_8h.html#a8307cb500850a7c5033cf64702e15990">strerror_r</a></div><div class="ttdeci">fmt::internal::null strerror_r(int, char *,...)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00058">format-inl.h:58</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1prettify__handler_html_aa4a4294911effee4c142bc68fcdd2518"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#aa4a4294911effee4c142bc68fcdd2518">fmt::v5::internal::prettify_handler::buf</a></div><div class="ttdeci">buffer &amp; buf</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00551">format-inl.h:551</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1internal_1_1basic__buffer_html_ab306d6d55956332b1083e967393a59f1"><div class="ttname"><a href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#ab306d6d55956332b1083e967393a59f1">fmt::v5::internal::basic_buffer::reserve</a></div><div class="ttdeci">void reserve(std::size_t new_capacity)</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00273">core.h:273</a></div></div>
<div class="ttc" id="aformat-inl_8h_html_a7b59f9b149f610d3edd05ed99536253c"><div class="ttname"><a href="format-inl_8h.html#a7b59f9b149f610d3edd05ed99536253c">FMT_SWPRINTF</a></div><div class="ttdeci">#define FMT_SWPRINTF</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00085">format-inl.h:85</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_1_1internal_html_a96be9ab86d7703a1aace4eda80007e69"><div class="ttname"><a href="namespacefmt_1_1v5_1_1internal.html#a96be9ab86d7703a1aace4eda80007e69">fmt::v5::internal::operator-</a></div><div class="ttdeci">fp operator-(fp x, fp y)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00429">format-inl.h:429</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1char__counter_html_a0c5ba7253e9f0080698e4771cd4332b1"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1char__counter.html#a0c5ba7253e9f0080698e4771cd4332b1">fmt::v5::internal::char_counter::append</a></div><div class="ttdeci">void append(ptrdiff_t n, char)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00665">format-inl.h:665</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1char__counter_html_a30c9aa9646ae4d285e4f850dc7c7d51c"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1char__counter.html#a30c9aa9646ae4d285e4f850dc7c7d51c">fmt::v5::internal::char_counter::append</a></div><div class="ttdeci">void append(char)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00666">format-inl.h:666</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1prettify__handler_html_a4af3a99f9adb0a32c74ce88f1386b986"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1prettify__handler.html#a4af3a99f9adb0a32c74ce88f1386b986">fmt::v5::internal::prettify_handler::prettify_handler</a></div><div class="ttdeci">prettify_handler(buffer &amp;b, ptrdiff_t n)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00553">format-inl.h:553</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1core__format__specs_html_a08766778b893b5a8057b9580db36da9c"><div class="ttname"><a href="structfmt_1_1v5_1_1core__format__specs.html#a08766778b893b5a8057b9580db36da9c">fmt::v5::core_format_specs::flags</a></div><div class="ttdeci">uint_least8_t flags</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l01102">format.h:1102</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_1_1internal_html_a6a266d9a7b8249c93b139f1fa499a45d"><div class="ttname"><a href="namespacefmt_1_1v5_1_1internal.html#a6a266d9a7b8249c93b139f1fa499a45d">fmt::v5::internal::get_cached_power</a></div><div class="ttdeci">fp get_cached_power(int min_exponent, int &amp;pow10_exponent)</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00453">format-inl.h:453</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_html_a87104ff0bbd588f55bbbadf592227d75"><div class="ttname"><a href="namespacefmt_1_1v5.html#a87104ff0bbd588f55bbbadf592227d75">fmt::v5::memory_buffer</a></div><div class="ttdeci">basic_memory_buffer&lt; char &gt; memory_buffer</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00553">format.h:553</a></div></div>
<div class="ttc" id="anamespacefmt_1_1v5_html_a8accad256e8cb70d1398a568742a60f0"><div class="ttname"><a href="namespacefmt_1_1v5.html#a8accad256e8cb70d1398a568742a60f0">fmt::v5::format</a></div><div class="ttdeci">std::basic_string&lt; typename char_t&lt; S &gt;::type &gt; format(const S &amp;format_str, const Args &amp;... args)</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l01454">core.h:1454</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1internal_1_1locale__ref_html_a1c00987ce7b6a1a9160277505b2dc38d"><div class="ttname"><a href="classfmt_1_1v5_1_1internal_1_1locale__ref.html#a1c00987ce7b6a1a9160277505b2dc38d">fmt::v5::internal::locale_ref::get</a></div><div class="ttdeci">Locale get() const</div><div class="ttdef"><b>Definition:</b> <a href="format-inl_8h_source.html#l00216">format-inl.h:216</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1basic__data_html_ae51c63ec91f02e2dad5c1d3eedb7b532"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1basic__data.html#ae51c63ec91f02e2dad5c1d3eedb7b532">fmt::v5::internal::basic_data::POW10_EXPONENTS</a></div><div class="ttdeci">static const int16_t POW10_EXPONENTS[]</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00752">format.h:752</a></div></div>
<div class="ttc" id="aformat_8h_html_ad9e2ed6d3b432a04c9622c34a2495304"><div class="ttname"><a href="format_8h.html#ad9e2ed6d3b432a04c9622c34a2495304">FMT_THROW</a></div><div class="ttdeci">#define FMT_THROW(x)</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00115">format.h:115</a></div></div>
<div class="ttc" id="astructfmt_1_1v5_1_1internal_1_1basic__data_html_a195c2b45ae9bb0a953156d3ae7eb35ca"><div class="ttname"><a href="structfmt_1_1v5_1_1internal_1_1basic__data.html#a195c2b45ae9bb0a953156d3ae7eb35ca">fmt::v5::internal::basic_data::POWERS_OF_10_32</a></div><div class="ttdeci">static const uint32_t POWERS_OF_10_32[]</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00748">format.h:748</a></div></div>
<div class="ttc" id="acore_8h_html_af4388801466a5994a363d6005616371a"><div class="ttname"><a href="core_8h.html#af4388801466a5994a363d6005616371a">FMT_CONSTEXPR_DECL</a></div><div class="ttdeci">#define FMT_CONSTEXPR_DECL</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00070">core.h:70</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_5f1136fe404e0a548faf586fae339a6a.html">sdk_core</a></li><li class="navelem"><a class="el" href="dir_fef6b6f1028f30fedf17225feaaa02fe.html">include</a></li><li class="navelem"><a class="el" href="dir_7bb3e31efd6b819bbb0704cee4a66d41.html">third_party</a></li><li class="navelem"><a class="el" href="dir_cf58c3a45797022668a1e269b5315a33.html">spdlog</a></li><li class="navelem"><a class="el" href="dir_248a80cf6760c7a1ab13394a1c16f7b2.html">spdlog</a></li><li class="navelem"><a class="el" href="dir_0c3a0641627b76fd80f03d211e44dc98.html">fmt</a></li><li class="navelem"><a class="el" href="dir_148a221396087d65c55fa0ea541856de.html">bundled</a></li><li class="navelem"><a class="el" href="format-inl_8h.html">format-inl.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.16 </li>
  </ul>
</div>
</body>
</html>
